ci(labeler): route packages/core changes to the harness label - #1168
Conversation
The label policy requires every PR to carry a routing label (app/ui/platform/harness/ci), and pr-triage runs actions/labeler with sync-labels: true, which strips any routing label not backed by a path glob. labeler.yml had no rule for packages/core/**, so a PR touching only packages/core could never satisfy the policy — the labeler removed any manually added routing label and pr-triage then failed. Map packages/core/** to harness (the engine the opencode harness builds on), matching the existing packages/opencode/** and packages/sdk/** rules.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated ChangesHarness Labeler Scope
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
packages/core/**had no rule in.github/labeler.yml, so any PR touching onlypackages/corecould not satisfy the label policy:pr-triagerunsactions/labelerwithsync-labels: true(which strips any routing label not backed by a path glob), and.github/scripts/label-policy-check.jsthen requires at least one routing label (app/ui/platform/harness/ci). The result was a structural deadlock — the labeler removed any manually added routing label, andpr-triagefailed every time.Map
packages/core/**toharness, alongside the existingpackages/opencode/**andpackages/sdk/**rules (core is the engine the opencode harness builds on).Why
Without this, every
packages/core-only PR is un-mergeable under the label policy. This surfaced on #1167 (acore/util/log.tsfix). The fix is one glob and unblocks all future core-only PRs.Related Issue
None — discovered while landing #1167.
Human Review Status
Pending
Review Focus
That
harnessis the right routing bucket forpackages/core(it backs the opencode CLI/runtime, not the desktop app/ui/electron/ci surfaces).Risk Notes
Minimal. CI label-routing config only; no product code, no build/test behavior. Worst case is a mis-routed label, fixable by editing one line.
How To Verify
Screenshots or Recordings
N/A — CI config only.
Checklist
bug,enhancement,task,documentation(task).ciis auto-assigned by the labeler (this PR touches.github/**).dev, and my PR title and commit messages use Conventional Commits in English.Summary by CodeRabbit