An open API service indexing awesome lists of open source software.

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 🐙😼

Awesome Lists containing this project

README

          

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

```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