You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(labels): add missing review status to new issues - #1969
git diff --cached --check before commit — passed; worktree clean after tests/commit.
Independent verification — PASS, no blockers.
Native four-lens review — approved and exact acknowledgement completed for 87a9436 (review-d80ee0e756389205).
GitHub CI full unit/E2E/lint and applicable platform checks — pending actual execution.
No Go behavior changed; broad Go checks are left to PR CI. actionlint is unavailable locally. Mocked local tests do not prove hosted execution or token capability. This issue-open workflow becomes available only after default-branch integration; no pre-merge live issue mutations attempted.
✅ Contributor Checklist
Linked an approved issue with a real assignee.
Exactly one type label.
Recorded focused regression and affected suite evidence.
Recorded additional local checks and missing CI/live proof.
Docs updated.
Conventional commit; no Co-Authored-By trailers.
All changed paths comply with the Transient Artifact Policy.
💬 Notes for Reviewers
Risk: item 5 — new GitHub Actions workflow with issue-label write permission. No inference of approval/type/priority/effort, backfill, label-removal handling, new dependency, settings change or merge.
Known non-blocking API limitation: GET and addLabels are separate requests. A status added concurrently by a maintainer between those requests can leave multiple statuses. This workflow reads fresh metadata, not an atomic singleton guarantee; no broad reconciliation is introduced.
Upstream rejected direct branch creation with GH013 (six required checks expected). This PR follows the documented fork workflow instead; required checks and repository rules remain unchanged.
Summary by CodeRabbit
New Features
Issues opened outside standard forms automatically receive the status:needs-review label when no status label is present.
Existing status labels are preserved, and current labels are checked before updates.
Documentation
Added guidance describing fallback labeling behavior for issues created through the CLI or API.
Reviewing files that changed from the base of the PR and between 23dbc73 and 87a9436.
📒 Files selected for processing: 3
.github/scripts/issue-status-fallback.test.mjs
.github/workflows/issue-status-fallback.yml
CONTRIBUTING.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.
📝 Walkthrough
The pull request adds a workflow that checks current labels when an issue opens and adds status:needs-review only if no status:* label exists. It also adds tests for workflow behavior and configuration, and documents the fallback’s scope.
Changes: Issue status fallback
Layer / File(s)
Summary
Issue-open fallback labeling and validation .github/workflows/issue-status-fallback.yml, .github/scripts/issue-status-fallback.test.mjs, CONTRIBUTING.md
The workflow checks current API labels and adds status:needs-review only when no status:* label exists. Tests cover label preservation, API failures, and workflow configuration. The contributor documentation describes the fallback’s scope and exclusions.
The issue-open fallback is ready for normal checks before merging; no actionable merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly and concisely describes the main change: adding a missing review status to newly opened issues through CI label handling.
Linked Issues check
Issue #1966 requirements are met. The workflow triggers only on issuesopened, grants issues: write, reads current labels, and adds only status:needs-review when no status:* label exists. It…
Out of Scope Changes check
All changed files support issue #1966. The workflow implements the fallback, the tests verify its behavior and scope, and CONTRIBUTING.md documents its operation and exclusions. No unrelated CI work…
Full details: Linked Issues check
Explanation
Issue #1966 requirements are met. The workflow triggers only on issuesopened, grants issues: write, reads current labels, and adds only status:needs-review when no status:* label exists. It uses an additive addLabels call, does not read issue content, and does not infer metadata. The diff does not modify the four issue forms. The workflow cannot backfill existing issues or react to later label removal. The new test file executes the actual script and covers missing status, existing statuses, current API metadata, API failures, permissions, trigger scope, and workflow restrictions. CONTRIBUTING.md documents the fallback and exclusions.
Full details: Out of Scope Changes check
Explanation
All changed files support issue #1966. The workflow implements the fallback, the tests verify its behavior and scope, and CONTRIBUTING.md documents its operation and exclusions. No unrelated CI workflow, issue form, label classification, backfill, or reconciliation change appears in the diff.
✨ Finishing Touches
🧪 Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
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
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.
🔗 Linked Issue
Closes #1966
🏷️ PR Type
type:chore— Maintenance, dependencies, tooling📝 Summary
status:needs-reviewwhen nostatus:*label exists.📂 Changes
.github/workflows/issue-status-fallback.yml.github/scripts/issue-status-fallback.test.mjsCONTRIBUTING.md🧪 Test Plan
node --test .github/scripts/issue-status-fallback.test.mjs— 6 failures before workflow creation, exit 1.node --test .github/scripts/*.test.mjs— 366 passed, exit 0; independently repeated.git diff --cached --checkbefore commit — passed; worktree clean after tests/commit.No Go behavior changed; broad Go checks are left to PR CI. actionlint is unavailable locally. Mocked local tests do not prove hosted execution or token capability. This issue-open workflow becomes available only after default-branch integration; no pre-merge live issue mutations attempted.
✅ Contributor Checklist
💬 Notes for Reviewers
Risk: item 5 — new GitHub Actions workflow with issue-label write permission. No inference of approval/type/priority/effort, backfill, label-removal handling, new dependency, settings change or merge.
Known non-blocking API limitation: GET and addLabels are separate requests. A status added concurrently by a maintainer between those requests can leave multiple statuses. This workflow reads fresh metadata, not an atomic singleton guarantee; no broad reconciliation is introduced.
Upstream rejected direct branch creation with GH013 (six required checks expected). This PR follows the documented fork workflow instead; required checks and repository rules remain unchanged.
Summary by CodeRabbit
New Features
status:needs-reviewlabel when no status label is present.Documentation