GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@Wibias Wibias commented Jul 27, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@Wibias
fix(ci): stop PR labeler from reverting human type labels
9a43d78
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.
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 27, 2026 01:06
@github-actions github-actions Bot added the bug Something isn't working label Jul 27, 2026
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

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

  • lidge-jun/opencodex#301: Modifies the same PR auto-labeling workflow and Conventional Commit type-label mapping.

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Wibias added 3 commits July 27, 2026 03:15
@Wibias
fix(ci): address PR labeler review feedback
59d4ec4
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.
@Wibias
feat(ci): label sentence-case PR titles without conventional colon
34c6a66
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.
@Wibias
fix(ci): cancel stale labeler runs on human label changes
c8fcc2b
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.
@Wibias
Wibias merged commit ce4d03e into lidge-jun:dev Jul 27, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
Wibias deleted the fix/pr-labeler-respect-manual branch July 27, 2026 03:54
@coderabbitai coderabbitai Bot mentioned this pull request Jul 27, 2026
fix(ci): let the PR labeler actually write labels #566
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Aug 4, 2026
fix(ci): run the test gate on stacked child PRs, and label PRs whose title carries no type #979
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@Wibias
Merge pull request lidge-jun#525 from Wibias/fix/pr-labeler-respect-m…
70f6f17
…anual

fix(ci): stop PR labeler from reverting human type labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu 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

Projects

None yet

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.

1 participant

@Wibias
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.