Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions workshop/14b-pr-reviewer-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions workshop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
53 changes: 53 additions & 0 deletions workshop/side-quest-14-01-pr-reviewer-troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!-- page-journey: all -->
<!-- page-adventure: side-quest -->
# 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)