ci: label-based opt-in for AI review + full matrix on agent PRs#573
Merged
NagyVikt merged 1 commit intoMay 13, 2026
Merged
Conversation
Adds escape hatches for the budget-friendly defaults. Both apply identically in the live workflows AND the templates ship to downstream projects. - cr.yml: agent/* PRs still skip AI review by default, but the `needs-review` label overrides the skip for that one PR. - ci-full.yml: weekly schedule + workflow_dispatch unchanged, plus per-PR opt-in via the `needs-ci-full` label. Both workflows add `labeled` to their pull_request.types so applying the label fires the run immediately — no re-push required. README documents the labels and points at `gh label create` for setup. Pre-existing test/metadata.test.js failures (4) are stale assertions from PR #571 and remain out of scope here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 13, 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
Adds two escape hatches to the budget-friendly defaults so the occasional agent PR that actually needs deeper checks can opt in without flipping a global toggle.
needs-reviewlabel on aagent/*PR → AI code review (cr.yml) runs even though it would otherwise skip.needs-ci-fulllabel on any PR → full cross-runtime matrix (ci-full.yml) runs immediately instead of waiting for the weekly schedule.Both workflows add
labeledto theirpull_request.types, so applying the label fires the run immediately — no re-push needed. Templates updated to ship the same convention to downstream projects.README under
templates/github/workflows/documents the labels with agh label create needs-review ...recipe for one-line setup.Test plan
js-yamltest/metadata.test.js(4 pre-existing stale assertions from PR ci: budget-friendly defaults + templates for gitguardex-managed projects #571 remain)agent/*PR, applyneeds-reviewlabel → Code Review firesneeds-ci-fulllabel to any PR → full Node 18/22 matrix firesagent/*PRs still skip both workflows🤖 Generated with Claude Code