Skip to content

Commit 42e946e

Browse files
Copilotpelikhan
andauthored
Move PR reviewer workflow to step 14b (after next-steps reflection step) (#1931)
* Initial plan * feat: move PR reviewer workflow to step 14b (after next-steps) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 3f31036 commit 42e946e

9 files changed

Lines changed: 46 additions & 17 deletions

.github/skills/micro-environment-simulator/workshop-student-journey.js

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const STEP_FILE_ALIASES = {
5252
"08b-interpret-your-run": ["08b-interpret-your-run.md"],
5353
"09-agentic-editing": ["09-agentic-editing.md"],
5454
"12-test-and-iterate": ["12-test-and-iterate.md"],
55-
"13-pr-reviewer-workflow": ["13-pr-reviewer-workflow.md"],
5655
"14-next-steps": ["14-next-steps.md"],
56+
"14b-pr-reviewer-workflow": ["14b-pr-reviewer-workflow.md"],
5757
"15-conditional-logic": ["15-conditional-logic.md"],
5858
"16-connect-data-source": ["16-connect-data-source.md"],
5959
"17-add-mcp-tools": ["17-add-mcp-tools.md"],
@@ -82,8 +82,8 @@ const STEP_IDS = [
8282
"08b-interpret-your-run",
8383
"09-agentic-editing",
8484
"12-test-and-iterate",
85-
"13-pr-reviewer-workflow",
8685
"14-next-steps",
86+
"14b-pr-reviewer-workflow",
8787
"15-conditional-logic",
8888
"16-connect-data-source",
8989
"17-add-mcp-tools",
@@ -911,6 +911,31 @@ function buildTransitions() {
911911
return { ok: true, state: applyLearning(next, context, { troubleshooting: 0.08, agentic: 0.05 }) };
912912
},
913913
"14-next-steps": (state, context) => ({ ok: true, state: applyLearning(state, context, { confidence: 0.01 }) }),
914+
"14b-pr-reviewer-workflow": (state, context) => {
915+
const compiledWorkflowCheck = ensureCompiledWorkflow(
916+
state,
917+
"workflow-not-compiled",
918+
"Compile the scenario workflow with `gh aw compile`, then commit and push the generated `.lock.yml`, or use a CCA session that compiles and commits the edited workflow before trying the PR reviewer step."
919+
);
920+
if (!compiledWorkflowCheck.ok) return compiledWorkflowCheck;
921+
const ccaGuidanceCheck = ensure(
922+
!needsCcaPromptGuidance(state, context) || hasCcaPromptGuidance(state, context),
923+
"The PR reviewer step does not clearly tell CCA learners to invoke `/agentic-workflows` or show the browser-only compile path.",
924+
"copilot-skill-guidance-missing",
925+
"Add `/agentic-workflows` skill invocation guidance and a UI-only compile path to the PR reviewer workflow step."
926+
);
927+
if (!ccaGuidanceCheck.ok) return ccaGuidanceCheck;
928+
const readiness = contentReadinessCheck(state, context, {
929+
salt: 223,
930+
category: "event-trigger-friction",
931+
failedAssumption: "The learner understands scheduled triggers but struggles to adapt to an event-driven `pull_request` trigger and the required `safe-outputs` limit.",
932+
remediation: "Keep the event trigger contrast with scheduled workflows prominent and add a worked example of `safe-outputs: create-issue-comment: limit: 1`.",
933+
emphasis: { bias: 0.1, conceptWeight: 0.1, complexityWeight: 0.08 }
934+
});
935+
if (!readiness.ok) return readiness;
936+
const next = updateWorkflowCompileState(state, context, { allowCloudAgent: true });
937+
return { ok: true, state: applyLearning(next, context, { agentic: 0.08, actions: 0.04, troubleshooting: 0.03 }) };
938+
},
914939
"15-conditional-logic": (state, context) =>
915940
advancedLessonStep(state, context, {
916941
requiresRun: true,

workshop/12-test-and-iterate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ If you want a stricter review loop, score each run for accuracy, completeness, a
9595
- [ ] I compared the new run with the previous run and decided what to change next
9696

9797
<!-- journey: all -->
98-
**Next:** [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md)
98+
**Next:** [What's Next? Keep Exploring](14-next-steps.md)
9999
<!-- /journey -->

workshop/14-next-steps.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ Here's a quick recap of the concepts you've touched. The diagram below shows how
7575
- [ ] You drafted a two-sentence brief for your next agentic workflow
7676
- [ ] You know where to find the gh-aw docs when you need them
7777

78-
You've reached the end of the main path — but the graph stays open. Come back any time, branch off in a new direction, and keep building. 🚀
78+
You've reached the end of the scheduled-workflow path — but there is one more step on the main track before you head into advanced territory. Come back to explore any of the deeper topics when you're ready.
7979

8080
<!-- /journey -->
8181

82+
<!-- journey: all -->
83+
**Next:** [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md)
84+
<!-- /journey -->
85+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Then recompile, push, and update the PR branch to trigger another run.
122122
- [ ] I can explain why `safe-outputs: create-issue-comment: limit: 1` matters for an event-driven workflow
123123

124124
<!-- journey: all -->
125-
**Next:** [What's Next? Keep Exploring](14-next-steps.md)
125+
**Next:** [Make Your Workflow Smarter with Conditional Logic](15-conditional-logic.md)
126126
<!-- /journey -->
127127

128128
---

workshop/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ A hands-on workshop that takes you from zero to a fully automated, AI-powered wo
2626
| 8b | [Interpret Your First Run](08b-interpret-your-run.md) |
2727
| 9 | [Refine Your Workflow with Agentic Editing](09-agentic-editing.md) |
2828
| 12 | [Test and Improve Your Workflow](12-test-and-iterate.md) |
29-
| 13 | [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md) |
3029
| 14 | [What's Next? Keep Exploring](14-next-steps.md) |
30+
| 14b | [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md) |
3131

3232
## Curriculum — Part 2: Go Deeper
3333

@@ -53,18 +53,18 @@ A hands-on workshop that takes you from zero to a fully automated, AI-powered wo
5353
- [Terminal Basics](side-quest-01-01-terminal-basics.md) — optional primer that branches from [Step 1](01-prerequisites.md).
5454
- [Environment Reference](side-quest-01-02-environment-reference.md) — glossary of workshop environments and tool terms with official docs links; branches from [Step 1](01-prerequisites.md).
5555
- [Install `gh-aw` Troubleshooting](side-quest-06-01-install-troubleshooting.md) — optional install troubleshooting reference that branches from [Step 6](06-install-gh-aw.md).
56-
- [Using `gh aw compile` to Catch Errors Early](side-quest-07-01-compile-workflow.md) — quick reference for `gh aw compile`, `--validate`, `--watch`, and common compile errors; branches from [Step 7](07-your-first-workflow.md), [Step 11a](07-your-first-workflow.md), or [Step 13](12-test-and-iterate.md).
56+
- [Using `gh aw compile` to Catch Errors Early](side-quest-07-01-compile-workflow.md) — quick reference for `gh aw compile`, `--validate`, `--watch`, and common compile errors; branches from [Step 7](07-your-first-workflow.md), [Step 11a](07-your-first-workflow.md), or [Step 12](12-test-and-iterate.md).
5757
- [Fix Codespaces `actions:write` Errors When Running `gh aw run`](side-quest-08-01-codespaces-actions-write.md) — troubleshooting guide for Codespaces workflow-trigger permission errors with a UI-first path and advanced recovery path; branches from [Step 8](08-run-your-workflow.md).
5858
- [Diagnosing Common Agent Output Patterns](side-quest-09-01-debug-output.md) — expanded troubleshooting guide for the five most common log patterns; branches from [Step 9](08b-interpret-your-run.md).
5959
- [Writing a Clear Agent Brief](side-quest-10-01-agent-brief.md) — five-step framework for designing any agentic workflow brief; branches from [Step 10](09-agentic-editing.md).
6060
- [Jailbreaking the Agent Brief](side-quest-10-02-jailbreak-brief.md) — explains how adversarial instructions embedded in repository content attempt to override the agent's task brief, and how the compiled brief, minimal `permissions:`, `safe-outputs`, and `network.allowed-domains` contain any partial success; branches from [Step 10](09-agentic-editing.md).
6161
- [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 11a](07-your-first-workflow.md).
6262
- [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.
63-
- [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 13](13-pr-reviewer-workflow.md).
64-
- [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 13](13-pr-reviewer-workflow.md).
65-
- [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 13](13-pr-reviewer-workflow.md).
66-
- [Observe and Reduce Token Costs](side-quest-13-04-token-optimization.md) — hands-on optimization activity for building an AIC baseline, auditing expensive runs, identifying cost drivers, and testing one token-reduction change at a time; branches from [Step 13](13-pr-reviewer-workflow.md).
67-
- [Fuzzy Schedule Expressions](side-quest-13-01-schedule-expressions.md) — quick reference for choosing between `daily`, `hourly`, `weekly`, and other fuzzy schedule expressions; branches from [Step 13](12-test-and-iterate.md).
63+
- [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).
64+
- [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).
65+
- [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).
66+
- [Observe and Reduce Token Costs](side-quest-13-04-token-optimization.md) — hands-on optimization activity for building an AIC baseline, auditing expensive runs, identifying cost drivers, and testing one token-reduction change at a time; branches from [Step 14b](14b-pr-reviewer-workflow.md).
67+
- [Fuzzy Schedule Expressions](side-quest-13-01-schedule-expressions.md) — quick reference for choosing between `daily`, `hourly`, `weekly`, and other fuzzy schedule expressions; branches from [Step 12](12-test-and-iterate.md).
6868
- [Evaluating and Iterating on Agent Output](side-quest-12-01-iterate-agent-output.md) — structured rubric for judging output quality, a five-row problem-to-fix reference table, and a one-change-at-a-time iteration loop; branches from [Step 12](12-test-and-iterate.md).
6969
- [GitHub Actions Expressions and Contexts](side-quest-15-01-expressions-and-contexts.md) — deep dive into `${{ }}` syntax, available context objects, output references, and `if:` conditions; branches from [Step 15](15-conditional-logic.md).
7070
- [YAML Frontmatter Pitfalls](side-quest-11-02-yaml-frontmatter.md) — reference guide for the five most common YAML mistakes; branches from [Step 11a](07-your-first-workflow.md).

workshop/side-quest-13-01-pr-labeler-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Extend your PR reviewer workflow to automatically apply GitHub labels based on t
88

99
## Before You Start
1010

11-
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md).
11+
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md).
1212
- Your practice repository has at least one label already created. If not, go to **Issues → Labels** in your repository and create labels like `documentation`, `tests`, and `bug-fix`.
1313

1414
## Why Auto-Labelling?

workshop/side-quest-13-02-pr-summary-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Build a PR summary workflow that posts a structured, human-readable summary comm
88

99
## Before You Start
1010

11-
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md).
11+
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md).
1212

1313
## Why a Structured Summary?
1414

workshop/side-quest-13-03-pr-checklist-pattern.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Build a workflow that evaluates every new pull request against a short review ch
88

99
## Before You Start
1010

11-
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md).
11+
- Complete [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md).
1212

1313
## Why a Checklist Workflow?
1414

workshop/side-quest-13-04-token-optimization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
## 📋 Before You Start
88

9-
- You completed [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md).
9+
- You completed [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md).
1010
- You have a working PR reviewer workflow or another workflow with at least 5 completed runs so you can compare before-and-after usage.
1111
- If you want extra background on AIC, audit artifacts, or budget guardrails, continue later to [Audit and Monitor Your Agentic Workflows](25-audit-and-observability.md) and [Manage Costs and AI Credit Budgets](26-manage-costs-and-budgets.md).
1212

@@ -157,5 +157,5 @@ Paste the relevant excerpt from your `gh aw audit --parse` output below the prom
157157
- [ ] You can name the next optimization you would test if cost is still too high
158158

159159
<!-- journey: all -->
160-
Return to [Build Your First Event-Driven Workflow: PR Auto-Reviewer](13-pr-reviewer-workflow.md).
160+
Return to [Build Your First Event-Driven Workflow: PR Auto-Reviewer](14b-pr-reviewer-workflow.md).
161161
<!-- /journey -->

0 commit comments

Comments
 (0)