A GitHub Action that makes repo maintainer's lives easier.
- Add labels for current and required number of reviews
- Add WIP label for draft PRs
- Track a target branch (e.g. staging) to confirm if all current PR commits exist on target
Add the following to your .github/workflows/pr-labeler.yml
file
name: PR Labeler
on: [pull_request, pull_request_review]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: 2KAbhishek/gh-pr-labeler@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
required: 3
wip: true
target-branch: main
label: Changes in main
color: 1688f0
Wanted to build a GitHub action from scratch
- Slower feedback loop during dev
- Debugging a GitHub Action is hard
- GA-Hello — a GitHub action for beginners
⭐ hit the star button if you found this useful ⭐
Source | Blog | Twitter | LinkedIn | More Links | Other Projects