Skip to content

GitHub actions bot to label pull requests with custom label on merge

License

Notifications You must be signed in to change notification settings

abhijithvijayan/label-pr-on-merge-bot

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

label-pr-on-merge-bot

GitHub Actions Bot to label pull requests with custom label on merge

🙋‍♂️ Made by @abhijithvijayan

Donate: PayPal, Patreon

Buy Me a Coffee


Bot will add merge label to the PR once it's merged screenshot 2

❤️ it? ⭐️ it on GitHub or Tweet about it.

Table of Contents

Usage

Sample workflow

You can use PR Merge Bot by configuring a YAML-based workflow file, e.g. .github/workflows/label-pr-on-merge-bot.yml.

name: Label PR on Merge Bot Action

on:
  pull_request:
    types: [ closed ]

jobs:
  label_pr_job:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - name: Label PR on Merge Bot
        uses: abhijithvijayan/label-pr-on-merge-bot@v2
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          merged_label: '🚀 merged'

Issues

Looking to contribute? Look for the Good First Issue label.

🐛 Bugs

Please file an issue here for bugs, missing documentation, or unexpected behavior.

See Bugs

Publish

Run ncc to build into single file and release a new version from Releases on GitHub:

yarn build
yarn package

Linting & TypeScript Config

License

MIT © Abhijith Vijayan

About

GitHub actions bot to label pull requests with custom label on merge

Resources

License

Stars

Watchers

Forks

Packages

No packages published