Skip to content

A lightweight GitHub Actions workflow that automatically labels Pull Requests by size

Notifications You must be signed in to change notification settings

amanso23/pr-size-label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

PR Size Label

A lightweight GitHub Actions workflow that automatically labels Pull Requests by size.

Labels

Label Lines Changed
size/XS < 10
size/S < 30
size/M < 100
size/L < 500
size/XL < 1000
size/XXL >= 1000

Usage

Copy .github/workflows/pr-size.yml into your repo. That's it.

The workflow triggers on pull_request: [opened, synchronize] and uses only the built-in gh CLI no third-party actions needed.

How It Works

  1. Fetches additions + deletions via gh pr view
  2. Picks a label based on total changed lines
  3. Creates the label if it doesn't exist (with color)
  4. Removes any previous size/* label
  5. Applies the new one

About

A lightweight GitHub Actions workflow that automatically labels Pull Requests by size

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors