GeezerVison is showing github.com — fix(ci): stop PR labeler from reverting human type labels by Wibias · Pull Request #525 · lidge-jun/opencodex
Conversation
Wibias
commented
Jul 27, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- PR Labeler no longer overwrites managed type labels (
bug / enhancement / …) after a human changes them (reproduced on fix(codex): warn or restart stale app-server after sync #518: bot re-applied bug after a maintainer switched to enhancement).
- Sticky override mirrors issue-quality: any non-
github-actions[bot] labeled/unlabeled event on a managed type label disables further auto sync for that PR.
- Extracted pure logic to
.github/scripts/pr-labeler.cjs with unit tests; workflow checkouts trusted default-branch code under pull_request_target.
Test plan
-
node --test .github/scripts/pr-labeler.test.cjs
- Open/sync a PR with only bot labeling → prefix still applies
- Manually change type label, then push a commit → label stays
- Note:
pull_request_target loads from the repo default branch (main); promote from dev for live effect (same as issue-quality)
Summary by CodeRabbit
-
New Features
- Added automatic pull request type labeling from Conventional Commit-style title prefixes.
- Preserves human label overrides so automated sync won’t overwrite them.
- Automatically creates missing type labels and updates labels based on a computed sync plan.
-
Bug Fixes
- Improved synchronization logic to respect prior manual label changes, including cases where overrides are later reverted.
-
Tests
- Added automated tests covering title prefix detection, override detection, and label sync planning.
-
Chores
- Expanded workflow triggers and updated the PR labeler workflow execution and permissions.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Once a non-bot actor changes a managed type label, keep that choice sticky across synchronize/edited runs — same override model as issue-quality not re-closing maintainer reopens.
coderabbitai
Bot
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
@Wibias, you've reached your PR review limit, so we couldn't start this review.
Next review available in: 32 minutes
Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).
How can I continue?
After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.
To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.
How do review limits work?
CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.
For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.
Please refer docs for additional details.
Review details
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 250a545b-2ca6-42dc-b7de-9742285a0457
📥 Commits
Reviewing files that changed from the base of the PR and between 59d4ec4 and c8fcc2b.
📒 Files selected for processing (3)
.github/scripts/pr-labeler.cjs
.github/scripts/pr-labeler.test.cjs
.github/workflows/pr-labeler.yml
📝 Walkthrough
Walkthrough
Adds a tested PR type-labeling module, preserves human label overrides, and updates the labeler workflow to use event-aware synchronization plans. CI now triggers on and runs the new labeler tests.
Changes
PR type-label synchronization
| Layer / File(s) |
Summary |
Label detection and synchronization planning .github/scripts/pr-labeler.cjs |
Lines 1–113 define managed label mappings, Conventional Commit title parsing, human override detection from label events, deterministic add/remove plans, and module exports. |
Labeler behavior tests .github/scripts/pr-labeler.test.cjs |
Lines 1–119 test prefix detection, bot-only and human label events, persistent overrides, no-op plans, additions, removals, and skip reasons. |
Workflow integration and CI execution .github/workflows/pr-labeler.yml, .github/workflows/issue-quality-tests.yml |
The labeler workflow loads the trusted script, fetches PR events, applies planned label changes, restricts permissions, and runs the new tests through CI triggers and validation steps. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Possibly related PRs
Suggested reviewers: ingwannu, lidge-jun
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly matches the main change: preserving human edits to PR type labels instead of letting automation revert them. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Guard prefix lookup with an own-property check, pin checkout to the default branch, narrow workflow permissions to pulls:read/issues:write, and tolerate concurrent label creation races.
LLM-authored PRs like #524 often use titles such as 'Fix Console Go …' instead of 'fix: …'. Fall back to the first title word when it matches a known type prefix.
Listen for labeled and unlabeled pull_request_target events so a human type-label edit enqueues a fresher run in the per-PR concurrency group and cancels any in-flight title sync. Add workflow contract tests for the activity types and preserved security settings.
Uh oh!
There was an error while loading. Please reload this page.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…anual
fix(ci): stop PR labeler from reverting human type labels
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|