Skip to content

Trigger step checks on merge to main to avoid Actions approval - #68

Merged
arilivigni merged 3 commits into
mainfrom
arilivigni-silver-system
Aug 6, 2026
Merged

Trigger step checks on merge to main to avoid Actions approval#68
arilivigni merged 3 commits into
mainfrom
arilivigni-silver-system

Conversation

@arilivigni

Copy link
Copy Markdown
Collaborator

Why

Learners reported the exercise gets stuck after Step 2 and never advances: Mona posts no feedback and Step 3 stays locked even after the pull request is merged (issues #59 and #64).

The root cause is the Actions approval gate. Steps 2 and 3 triggered on pull_request: closed, but the exercise pull requests are authored by the Copilot coding agent. GitHub holds workflow runs on bot/first-time-contributor pull requests in "waiting for approval," so the grading job and the "post next step" job never ran when the learner merged.

What changed

  • Workflows: switch Step 2 (2-step.yml) and Step 3 (3-last-step.yml) triggers from pull_request: closed to push on main with paths: docs/**, matching the existing Step 0 start workflow. The merge push is performed by the learner (who has write access), so the checks run automatically with no manual approval. As a bonus this fixes a latent bug where a pull request closed without merging would have advanced the exercise.
  • Step 1 doc: the "Require approval for first-time contributors" pre-flight note is reframed from a hard requirement to an optional [!NOTE] (kept for now, can be removed later), since progression no longer depends on it.
  • Step 1 troubleshooting: added guidance for the Copilot Space conversation blanking out on send (issue Create an issue in the repository for a README for OctoAcme Project Management Docs #67) - reload/Retry and confirm Spaces access / model selection.
  • Step 2, Step 3, README: clarified that steps advance automatically on merge and to check the Actions tab if a run seems delayed; removed any implication that manual approval is needed.

Notes for reviewers

Verified that neither Step 2 nor Step 3 uses github.event.pull_request.* context or a merged guard, so dropping the pull_request event is safe. Grading only inspects docs/README.md on disk, which is present on main after merge. The Step 1 -> 2 -> 3 enable/disable gating is unchanged, so disabled steps still won't fire on the initial template push. All four workflow YAML files parse cleanly.

Issue #67's deeper Copilot Space UI behavior is a product-side concern; this change only adds learner-facing troubleshooting for it.

Steps 2 and 3 triggered on pull_request:closed. Because the Copilot
coding agent authors the exercise PRs, those workflow runs were held in
"waiting for approval" and never ran on merge, so the exercise never
advanced past Step 2 (issues #59, #64).

Switch the Step 2 and Step 3 triggers to push on main (paths docs/**),
matching the Step 0 start workflow. The merge push is performed by the
learner, so runs start automatically without manual approval. This also
fixes a latent bug where a PR closed without merging would advance.

Docs: soften the Step 1 Actions-approval note to optional, add Copilot
Space troubleshooting for the conversation blanking on send (#67), and
note in Steps 2/3 and the README that steps advance automatically on
merge.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 6, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the exercise automation so Step 2 and Step 3 workflows run after a merge to main (via push), avoiding GitHub Actions’ “workflow approval required” gate that can block runs for bot-authored pull requests. It also updates learner-facing docs to clarify that steps advance automatically and to add troubleshooting tips.

Changes:

  • Switch Step 2 and Step 3 workflow triggers from pull_request: closed to push on main (scoped to docs/**).
  • Update step documentation and README to clarify that no manual workflow approval is needed and to point learners to the Actions tab when progress is delayed.
  • Reframe the Step 1 “require approval for first-time contributors” note as optional and add Copilot Spaces troubleshooting guidance.
Show a summary per file
File Description
README.md Adds clarification that steps advance automatically on merge and suggests checking Actions when delayed.
.github/workflows/2-step.yml Triggers Step 2 on push to main affecting docs/** to avoid approval gating.
.github/workflows/3-last-step.yml Triggers Step 3 on push to main affecting docs/** to avoid approval gating.
.github/steps/1-step.md Updates preflight guidance (optional approval settings) and adds troubleshooting for Copilot Spaces UI behavior.
.github/steps/2-step.md Adds troubleshooting note explaining Step 2 advances automatically on merge and to check Actions.
.github/steps/3-step.md Adds troubleshooting note explaining Step 3 runs automatically on merge and to check Actions.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread .github/steps/1-step.md Outdated
Comment thread .github/steps/1-step.md Outdated
arilivigni and others added 2 commits August 6, 2026 10:48
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 6/6 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@arilivigni
arilivigni merged commit b007368 into main Aug 6, 2026
1 check passed
@arilivigni
arilivigni deleted the arilivigni-silver-system branch August 6, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants