Skip to content

ci(github): add pull request size labels#901

Open
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/pr-size-label-workflow
Open

ci(github): add pull request size labels#901
binbandit wants to merge 1 commit intopingdotgg:mainfrom
binbandit:t3code/pr-size-label-workflow

Conversation

@binbandit
Copy link
Contributor

@binbandit binbandit commented Mar 11, 2026

Summary

  • add a PR size workflow that labels pull requests from additions plus deletions
  • make vouch label updates remove and add only managed labels to avoid label clobbering
  • document the new size labels for contributors

Testing

  • bun fmt
  • bun lint
  • bun typecheck

Note

Add pull request size labels via GitHub Actions workflow

  • Adds pr-size.yml, a new workflow that runs on pull_request_target and applies a single size:* label (XS through XXL) based on total changed lines, removing any conflicting size labels automatically.
  • Updates pr-vouch.yml to use a Set for managed label lookups, fetch up to 100 labels, ignore 422 errors on label creation, and remove only conflicting vouch labels instead of resetting all labels.
  • Updates CONTRIBUTING.md to document the new size labeling behavior.

Macroscope summarized 552a142.

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0bcab36f-118b-45d1-be1f-90e9490d4450

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Mar 11, 2026
@binbandit
Copy link
Contributor Author

@juliusmarminge This will help us easily workout the quick-win PR's vs the ones that can wait till we have a coffee and some spare time 😂

@Bashamega
Copy link
Contributor

Bashamega commented Mar 11, 2026

Maybe add to the docs which PR size will likely get accepted, or reviewed faster?

@binbandit
Copy link
Contributor Author

Maybe add to the docs which PR size will likely get accepted, or reviewed faster?

I like the idea, but i dont want to give people hope that their PR will be reviewed over someone else's because its small etc.

@Bashamega
Copy link
Contributor

Bashamega commented Mar 11, 2026

You can make like a table simmiliar to this:

Label Approx. merge rate
big 25 %
small 75 %
large 15 %

This is generated by ai it will be customized, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants