Skip to content

2KAbhishek/gh-pr-labeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License People Stars Forks Watches Last Updated

Label Your PRs πŸ™πŸ˜Ό

A GitHub Action that makes repo maintainer's lives easier.

✨ Features

  • 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

Setup

πŸ’» Usage

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

Behind The Code

🌈 Inspiration

Wanted to build a GitHub action from scratch

πŸ’‘ Challenges/Learnings

  • Slower feedback loop during dev
  • Debugging a GitHub Action is hard

🧰 Tooling

πŸ” More Info

  • GA-Hello β€” a GitHub action for beginners

⭐ hit the star button if you found this useful ⭐

Source | Blog | Twitter | LinkedIn | More Links | Other Projects

Releases

No releases published

Sponsor this project

 

Packages

No packages published