https://github.com/2kabhishek/gh-pr-labeler
Label Your PRs 🐙😼
https://github.com/2kabhishek/gh-pr-labeler
actions github maintainer pr pull-request
Last synced: 26 days ago
JSON representation
Label Your PRs 🐙😼
- Host: GitHub
- URL: https://github.com/2kabhishek/gh-pr-labeler
- Owner: 2KAbhishek
- License: mit
- Created: 2023-05-16T17:23:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T20:46:38.000Z (about 3 years ago)
- Last Synced: 2025-09-01T09:28:04.408Z (9 months ago)
- Topics: actions, github, maintainer, pr, pull-request
- Language: JavaScript
- Size: 297 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```yml
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
- [Dotfiles](https://github.com/2kabhishek/Dotfiles) — Dev Environment
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor
- [awesome2k](https://github.com/2kabhishek/awesome2k) — Tiling Window Manager
### 🔍 More Info
- [GA-Hello](https://github.com/2kabhishek/GA-Hello) — a GitHub action for beginners
⭐ hit the star button if you found this useful ⭐
Source
| Blog
| Twitter
| LinkedIn
| More Links
| Other Projects