Skip to content
play

GitHub Action

Label PR on Merge Bot

v2 Latest version

Label PR on Merge Bot

play

Label PR on Merge Bot

Label pull requests with custom label on merge

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Label PR on Merge Bot

uses: abhijithvijayan/label-pr-on-merge-bot@v2

Learn more about this action in abhijithvijayan/label-pr-on-merge-bot

Choose a version

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