ci: add PR size labeler workflow#2989
Draft
cijothomas wants to merge 1 commit into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2989 +/- ##
==========================================
- Coverage 85.92% 85.92% -0.01%
==========================================
Files 725 725
Lines 275605 275605
==========================================
- Hits 236811 236806 -5
- Misses 38270 38275 +5
Partials 524 524
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow that automatically labels pull requests by size (
size/XSthroughsize/XL) based on changed line count, and posts a friendly reminder comment when a PR hitssize/XL(500+ lines).Uses
CodelyTV/pr-size-labeler(390+ stars, MIT, actively maintained), pinned to a commit SHA per OSSF Scorecard best practices.Thresholds (Kubernetes / Prow-aligned)
size/XSsize/Ssize/Msize/Lsize/XLNotes
pull_request_target(same pattern as the existinglabeler.yml). No PR code checkout occurs, so this is safe with fork PRs.go.sum,Cargo.lock,*.pb.go,testdata/,vendor/) are ignored to avoid skewing counts.Follow-up (if approved)
The labels (
size/XS...size/XL) will need to be created in the repo (one-time admin task). Suggested color scheme matches Kubernetes' Prow defaults.Follow-up to #2864 (comment) from @drewrelmas.