From 989f7f24e2b171f269ebee1feb68829aa0d85bb1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2026 23:44:47 +0000 Subject: [PATCH] docs: extract PR reviewer troubleshooting side quest Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- workshop/14b-pr-reviewer-workflow.md | 14 +---- workshop/README.md | 1 + ...quest-14-01-pr-reviewer-troubleshooting.md | 53 +++++++++++++++++++ 3 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 workshop/side-quest-14-01-pr-reviewer-troubleshooting.md diff --git a/workshop/14b-pr-reviewer-workflow.md b/workshop/14b-pr-reviewer-workflow.md index ac337478..a9b41677 100644 --- a/workshop/14b-pr-reviewer-workflow.md +++ b/workshop/14b-pr-reviewer-workflow.md @@ -134,19 +134,7 @@ In the run log, confirm that the parent calls `pr-reviewer` and that the reviewe To test the manual path, add a `/review` comment to the pull request. After pushing another commit, use `/review` again instead of moving the pull request back to draft. -> [!NOTE] -> If no run starts, confirm that the workflow is on your default branch and that you changed the pull request from draft to ready. Opening a pull request as ready does not emit the `ready_for_review` event. - -If the run completes but the review does not mention the `pr-review-standards` skill or does not cite changed files and lines, the reviewer likely could not find the skills directory. Use this checklist to recover: - -1. Confirm `.github/skills/agentic-workflows/` exists and was pushed. Run `ls .github/skills/` in your terminal. If the directory is missing, run `gh aw init`, commit the generated files, and push. -2. If the directory exists but the skill was still not applied, ask the agent to reinforce the instruction: - -```prompt -/agentic-workflows Update .github/workflows/pr-reviewer.md so the pr-reviewer agent explicitly searches for and applies the pr-review-standards skill before returning findings. -``` - -1. Compile, commit, and re-trigger `/review` to confirm the skill is now applied. +> **Optional Side Quest:** If no run starts, or the review does not cite changed lines or mention the `pr-review-standards` skill, work through [Side Quest: Troubleshoot Your PR Reviewer](side-quest-14-01-pr-reviewer-troubleshooting.md), then come back here. ## Improve One Layer diff --git a/workshop/README.md b/workshop/README.md index c5f967df..270f6f1a 100644 --- a/workshop/README.md +++ b/workshop/README.md @@ -72,6 +72,7 @@ You can optionally explore the [GitHub Agentic Workflows interactive presentatio - [Frontmatter Deep Dive — Part A](side-quest-11-01-frontmatter-deep-dive.md) — walkthrough of the opening, trigger, and permissions sections of `gh-aw` frontmatter, with predict-and-try activities; branches from [Step 7](07-your-first-workflow.md). - [Workflow File Structure at a Glance](side-quest-11-01b-workflow-structure.md) — visual map of the two-file structure (`.md` + `.lock.yml`), the frontmatter sections, and the Markdown body; branches from [Step 7](07-your-first-workflow.md). - [Frontmatter Deep Dive — Part B](side-quest-11-08-frontmatter-tools-outputs.md) — walkthrough of the tools, safe-outputs, closing fence, and agent body sections, with predict-and-try activities; continues from Part A. +- [Troubleshoot Your PR Reviewer](side-quest-14-01-pr-reviewer-troubleshooting.md) — recovery steps for a reviewer that does not trigger or does not apply its skill; branches from [Step 14b](14b-pr-reviewer-workflow.md). - [Pattern: Auto-Label PRs by Content](side-quest-13-01-pr-labeler-pattern.md) — apply labels automatically based on which files changed in a pull request; branches from [Step 14b](14b-pr-reviewer-workflow.md). - [Pattern: Generate a PR Summary Comment](side-quest-13-02-pr-summary-pattern.md) — post a structured, changelog-ready summary comment when a pull request opens; branches from [Step 14b](14b-pr-reviewer-workflow.md). - [Pattern: PR Review Checklist](side-quest-13-03-pr-checklist-pattern.md) — evaluate pull requests against a quality checklist and post a pass/fail table; branches from [Step 14b](14b-pr-reviewer-workflow.md). diff --git a/workshop/side-quest-14-01-pr-reviewer-troubleshooting.md b/workshop/side-quest-14-01-pr-reviewer-troubleshooting.md new file mode 100644 index 00000000..43422e39 --- /dev/null +++ b/workshop/side-quest-14-01-pr-reviewer-troubleshooting.md @@ -0,0 +1,53 @@ + + +# Side Quest: Troubleshoot Your PR Reviewer + +> _Optional: use this detour when your PR reviewer does not start, or runs without applying the `pr-review-standards` skill._ + +## :dart: What You'll Do + +Work through two quick recovery paths for the PR reviewer from [Build a PR Reviewer with an Agent and Skill](14b-pr-reviewer-workflow.md): getting a run to start, and getting the reviewer to apply its skill. By the end, you'll have a review that cites changed files and lines. + +## :clipboard: Before You Start + +- You created `.github/workflows/pr-reviewer.md` in [Build a PR Reviewer with an Agent and Skill](14b-pr-reviewer-workflow.md). +- You opened a draft pull request and marked it **Ready for review**, or commented `/review`. + +## Steps + +### Symptom: no run starts + +1. Confirm `pr-reviewer.md` and its compiled `pr-reviewer.lock.yml` are on your default branch. Event triggers only fire from workflows that exist there. +2. Confirm the pull request started as a **draft** and you selected **Ready for review**. Opening a pull request as ready does not emit the `ready_for_review` event. +3. To rerun after pushing another commit, comment `/review` instead of moving the pull request back to draft. + +### Symptom: the review ignores the skill + +If the run completes but the review does not mention the `pr-review-standards` skill or does not cite changed files and lines, the reviewer likely could not find the skills directory. + +1. Confirm `.github/skills/agentic-workflows/` exists and was pushed. Run `ls .github/skills/` in your terminal. If the directory is missing, run `gh aw init`, commit the generated files, and push. +2. If the directory exists but the skill was still not applied, ask your agent to reinforce the instruction: + +```prompt +/agentic-workflows Update .github/workflows/pr-reviewer.md so the pr-reviewer agent explicitly searches for and applies the pr-review-standards skill before returning findings. +``` + +3. Compile, commit, and push the change: + +```bash +gh aw compile +git add . +git commit -m "fix: make pr-reviewer apply its skill" +git push +``` + +4. Comment `/review` on the pull request and confirm the new review cites changed files and lines. + +## :white_check_mark: Checkpoint + +- [ ] You know why a pull request opened as ready does not trigger `ready_for_review` +- [ ] You confirmed `.github/skills/` was pushed to your repository +- [ ] You can reinforce the skill instruction through `/agentic-workflows` and recompile +- [ ] A `/review` rerun produced a review that cites evidence from the changed lines + +**Return to the main adventure:** [Build a PR Reviewer with an Agent and Skill](14b-pr-reviewer-workflow.md)