Skip to content

Latest commit

 

History

History
96 lines (74 loc) · 4.04 KB

readme.md

File metadata and controls

96 lines (74 loc) · 4.04 KB

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