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
refactor(ci-gate): use comment prompt + ready-for-aw label
GITHUB_TOKEN-added labels don't trigger other workflows (GitHub's
anti-cascade protection). Instead of auto-labeling, ci-gate now posts a
comment instructing the PR owner to manually add the 'ready-for-aw'
label to trigger agentic CI smoke tests.
Changes:
- Rename label from 'ready-for-ci' to 'ready-for-aw' across all workflows
- ci-gate posts/updates a comment instead of calling issues.addLabels
- Add 'opened' to pull_request trigger types
- Add copilot-pull-request-reviewer[bot] to reviewer Set
- Rename test file to match new label name
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
// This step intentionally does NOT remove the label on push.
98
-
// The label persists so that re-triggered agentic workflows can run.
99
-
// The label is only meaningful as a "review addressed" signal.
100
-
core.info('Label preserved across pushes to allow agentic CI to re-run');
103
+
if (!copilotReviewed) {
104
+
core.info('No Copilot review found yet, waiting');
105
+
return;
106
+
}
107
+
108
+
if (hasInlineComments) {
109
+
await postGateComment(
110
+
'⏳ Copilot review has inline comments.\n\n@copilot Please address the review feedback from the Copilot pull request reviewer above. Fix the issues raised in the inline comments and push your changes.'
111
+
);
112
+
return;
113
+
}
114
+
115
+
// Copilot reviewed with no inline comments — ask CCA to add the label
116
+
await postGateComment(
117
+
'✅ Copilot review passed.\n\n@copilot Please add the `ready-for-aw` label to this PR to trigger agentic CI smoke tests. Use: `gh pr edit ' + pr_number + ' --add-label ready-for-aw`'
118
+
);
119
+
core.info('Posted comment asking CCA to add ready-for-aw label');
0 commit comments