Repository navigation
#74: Review-cycle skill: one Copilot round; read CI from workflow runs - #75
Merged
Merged
Conversation
Copilot reviews a PR once, when it opens, so drop the re-review wait and rounds. Fine-grained tokens have no Checks permission, so read CI from workflow runs (Actions read) instead of gh pr checks. Where the base has no CI (PRs into dev), a passing local suite on the head stands in, so threads can be resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
CI gating can accept stale or unrelated results, bypass expected workflows, or remain blocked by superseded failures.
4 open issues
What changed in this PR
Updates the PR review-cycle skill for #74 to avoid re-review waits and support workflow-based CI checks.
Changes:
- Limits Copilot triage to one round.
- Uses workflow runs for CI, with a local-test fallback for bases without CI.
- Updates token permissions and readiness reporting.
| File | Description |
|---|---|
| skills/xpq-pr-review-cycle.md | Revises review polling, CI evaluation, thread resolution, and reporting. |
| README.md | Documents Actions read permission and the revised review cycle. |
Review effort: Balanced
Step 1's headRefOid is stale after Step 6 pushes fixes, and the dropped re-review poll no longer refreshes it. Without a re-read, Step 7 could pass on the pre-fix commit's runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Listing every run on the head sha mixed in other workflows, runs from an earlier base and superseded runs, and treated "no runs yet" as "no CI". Step 7 now decides which workflows apply from their pull_request triggers (branches, types, paths), takes the newest run of each, and falls back to the local suite only when none apply. A missing run for an applicable workflow blocks instead of falling back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 of 6 tasks
resolveReviewThread is refused for the fine-grained token even with Pull requests read/write. Step 8 now posts the replies and lists each thread's link for the user to resolve; Step 9 accepts unresolved threads that are on that list. README notes the limitation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The authority line let CLAUDE.md §8 win over the skill, and §8 still said to resolve every thread, which the token cannot do. The skill now owns the review procedure; §13 and the conventions doc still win where they overlap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Implements #74 — the review-cycle skill stalled on XP-Quest/xpq-api#129: it waited for a Copilot re-review that never comes, and could not resolve threads because
gh pr checksfails with the fine-grained token and PRs intodevhave no CI. The skill now does one triage round, reads CI from workflow runs, and accepts a passing local suite on the head when the base has no CI. The README's token permissions swap Checks read (not offered for fine-grained tokens) for Actions read. Thread resolution moves to the user, because the fine-grained token cannot resolve threads.SR&ED Linkage
Lifecycle
Test Plan
bash scripts/tests/run_tests.sh— 244/244 ok (on 8ac5840 and again on 4d35d88)gh run list -R XP-Quest/xpq-api --commit <head of xpq-api#127> --json name,event,status,conclusionwith the current fine-grained token — returnsbranch-cleanup,pr-lifecycleandRunning Copilot Code Review(event: dynamic), allsuccess; the check-runs API on the same sha returns "Resource not accessible by personal access token"pr-lifecyclerun on 4d35d88 (success); thread replies postedresolveReviewThreadreturns FORBIDDEN ("Resource not accessible by personal access token") with Pull requests read/write, so 3b3e7bc hands resolution to the user (Steps 8–9)Notes for Reviewer (self, for now)
Review follow-up (Copilot, 4 findings)
headRefOidstale after fix pushes🤖 Generated with Claude Code