-
Notifications
You must be signed in to change notification settings - Fork 475
ci: add pr size labeler #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add pr size labeler #1082
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Updated, also fixed the logical bug to force the labeler to first remove existing size labels. Appears we are failing because of a permissions issue that is not appearing in the personal account testing - "Resource not accessible by integration" Unsure why this PR is even running since its not on main. Edit: silly mistake, needed pull_request_target, not pull_request |
Description
Add PR Size Labeler to Improve Review Velocity
PRs have been taking longer to review because they are not scoped to manageable sizes. Large PRs create review bottlenecks where reviewers struggle to provide thorough feedback and risk missing critical issues in complex changes. This change encourages smaller, focused PRs that are easier to review and helps reviewers prioritize their time. Blocks oversized PRs that should be split, improving overall development velocity through faster review cycles.
Solution
Adds an automated GitHub Action that labels pull requests based on their size:
size/xs: ≤20 lines
size/s: ≤100 lines
size/m: ≤500 lines
size/l: ≤1000 lines
size/xl: >1000 lines (fails the check)
This change only runs for trusted assignees. We can loosen this in the future. But the reason is that maintainers should only be running "Approve workflows" if they have already reviewed the PR. So if you have already reviewed the PR this is not that useful of a feature.
Type of Change
CI
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
Tested in dbschmigelski/integ-testing where PRs of multiple sizes were executed against it.
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.