Skip to content

2KAbhishek/gh-pr-labeler

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

gh-pr-labeler

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