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
Commit 501edef
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/skills/pr-triage/SKILL.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,23 +33,24 @@ Produce a table of open pull requests with CI status and a merge recommendation,
33
33
34
34
## Workflow
35
35
36
-
**Never approve, merge, or close a PR automatically. Every approval, merge, and close is a separate action the user must explicitly request, one at a time, regardless of the recommendation in the table.**This skill only produces recommendations and takes the read-only/branch-update actions described below on its own.
36
+
**Never approve, merge, or close a PR automatically. Every PR approval, merge, and close requires an explicit request for that PR, regardless of the recommendation in the table.**Approving CI workflow runs has a separate, restricted consent step below.
37
37
38
38
For prioritizing which PRs matter most when the user does ask for merges, note that these often correct data that other PRs' CI depends on, so they're worth flagging as high priority in that order:
39
39
40
40
1.**Autofix PRs** (e.g. the `github-actions[bot]` collections-renames PR).
When asked to "Triage the PRs for github/explore":
45
45
46
-
1. Update every open PR from the base branch (see below) to trigger fresh CI runs.
47
-
2. List open PRs with `gh pr list` including CI status (`statusCheckRollup`), read each PR's body/checkboxes, diff, and any bot triage comments (e.g. the maintainer triage comment posted by `explore-triage-commenter`), apply the merge recommendation rules, and present the table.
48
-
3. Do not approve, merge, or close any PR — including ones recommended ✔️ or ❌ — without the user explicitly asking for that specific PR.
46
+
1. List open PRs with `gh pr list` including CI status (`statusCheckRollup`), read each PR's body/checkboxes, diff, and any bot triage comments (e.g. the maintainer triage comment posted by `explore-triage-commenter`), and apply the merge recommendation rules. Check workflow runs for manual-approval gates.
47
+
2. In the first response, create the table as an artifact and open it in the editor canvas. Do not wait for CI approvals or branch updates before showing the table.
48
+
3. If any PRs recommended ✔️ have runs requiring approval, prompt the user: "N PRs look safe but have runs requiring approval. Would you like me to approve them to run?" Use the number of qualifying PRs, not the number of runs. Do not ask this for PRs recommended 🔍 or ❌. Do not approve any runs before the user agrees.
49
+
4. Do not approve, merge, or close any PR — including ones recommended ✔️ or ❌ — without the user explicitly asking for that specific PR.
49
50
50
51
## Updating PR branches
51
52
52
-
When asked to update PRs from the base branch, use `gh pr update-branch <number>` for each open PR. Dependabot, `github-actions[bot]`, and `github-security-bot` PRs are still valid targets for this — being "always accepted" for merge doesn't exempt them from branch updates.
53
+
Only when asked to update PRs from the base branch, use `gh pr update-branch <number>` for each open PR. Dependabot, `github-actions[bot]`, and `github-security-bot` PRs are still valid targets for this — being "always accepted" for merge doesn't exempt them from branch updates.
53
54
54
55
## CI check approval
55
56
@@ -59,7 +60,7 @@ Workflow runs that require manual approval (e.g. first-time contributors) can be
59
60
gh api -X POST repos/github/explore/actions/runs/<run_id>/approve
60
61
```
61
62
62
-
Only do this for runs actually in `action_required` or `waiting` status — a 🔴 CI status from a completed, non-blocked run is a real failure, not a pending approval. As with PR approvals and merges, only approve a workflow run to unblock CI when the user has explicitly asked for that PR to move forward.
63
+
Only approve runs for PRs independently recommended ✔️ under the merge recommendation rules, never for PRs recommended 🔍 or ❌. The runs must actually require approval (`action_required` or `waiting`); a 🔴 CI status from a completed, non-blocked run is a real failure, not a pending approval. After the table is open in the canvas, ask the user for consent as described above; only if they agree, recheck each PR's recommendation and run state before approving the qualifying runs. Consent to run CI does not authorize approving or merging the PR.
0 commit comments