chore(ci): add optimized PR size labeler and batch workflows#27616
Merged
Conversation
Contributor
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
Size Change: -4 B (0%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
|
📊 PR Size: size/L
|
bdmorgan
approved these changes
Jun 2, 2026
whhe
pushed a commit
to whhe/gemini-cli
that referenced
this pull request
Jun 4, 2026
hotmanxp
pushed a commit
to hotmanxp/gemini-cli
that referenced
this pull request
Jun 4, 2026
rfcclub
pushed a commit
to rfcclub/gemini-cli
that referenced
this pull request
Jun 7, 2026
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.
Summary
Introduces two workflows to automatically categorize Pull Requests by size:
PR events (opened, synchronized, reopened) and manual triggers.
which retroactively labels existing PRs via manual triggers.
Details
The system consists of two GitHub Action workflows that operate completely
server-side using the GitHub API via the 'gh' CLI, removing the need to
locally checkout the repository.
(new commits pushed), or reopened. It can also be triggered manually via
workflow_dispatch by providing an optional PR number.
correct size label based on total modifications (additions + deletions):
are not already present.
single GitHub API query.
atomic edit call only if a label change is required.
updates it inline, leaving exactly one clean status comment in the thread.
historical pull requests.
(open and closed) or open PRs only.
(defaults to 100).
eligible PRs within the specified limit in a single consolidated request.
in-memory, and executes updates only for PRs missing the correct size
label.
Related Issues
How to Validate
Pre-Merge Checklist