Uh oh!
There was an error while loading. Please reload this page.
fix(ci): add missing steps key in cleanup-branches.yml - #1075
Conversation
The cleanup job's env mapping was immediately followed by a `- name: Checkout repository` list item with no `steps:` parent key, which is invalid YAML. Since npm run lint:all lints every workflow file (not just changed ones), this broke the required "All Checks Passed" status check for every PR into develop. Closes#1074 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Warning Review limit reached
Next review available in:54 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
Metadata governance
|
🔍 Reviewer Summary for PR #1075CI Status: ❌ Recommendations
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:7ac1ac2f4a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| runs-on: ubuntu-latest | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| steps: |
There was a problem hiding this comment.
Match merged branch refs exactly before enabling deletion
Adding steps activates the scheduled live cleanup (--dryRun=false), but scripts/cleanup-branches.js:216-222 determines merge status with substring matching. If an old, unmerged branch named topic/foo exists while the longer topic/foobar is merged, the output from git branch -r --merged contains origin/topic/foobar, so .includes("origin/topic/foo") incorrectly classifies topic/foo as merged and the workflow deletes it. Git's git branch -h defines --merged <commit> as “print only branches that are merged”; parse those output lines for exact equality or use an ancestry check before allowing live deletion.
Useful? React with 👍 / 👎.
Required by the repo's "Require changelog update or skip label" check, which needs an actual CHANGELOG.md diff (the meta:no-changelog skip label isn't allowed for type:bug PRs). Relates to #1074 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Bugfix Pull Request
Linked issues
Closes#1074
Context
All Checks Passedstatus check for every PR intodevelop, not just ones touching this file.developbranch CI (repo-widenpm run lint:all).Reproduction
develop2)npm run lint:all3) observe spectral parser errors at.github/workflows/cleanup-branches.yml:37-46.16 problems (16 errors)from invalid YAML.Root Cause
cleanup-branches.ymlwith thecleanupjob'senv:mapping immediately followed by a- name: Checkout repositorylist item, with nosteps:parent key — invalid YAML (a mapping value can't mix in a sequence like that).Fix Summary
steps:key at the correct indentation before the existing step list. No behavioural change to the cleanup logic itself, since it was never valid to begin with.Verification
js-yamlparse andnpx spectral lintlocally (zero errors), plus the full localnpm testsuite (670/670 passing) via the pre-push hook.Risk & Rollback
Changelog
Fixed
cleanup-branches.yml(missingsteps:key) that brokenpm run lint:allfor every PR intodevelop.Checklist (Global DoD / PR)