From 45760552dc6b64c2c66297ae24fe6a6981cf5109 Mon Sep 17 00:00:00 2001 From: GitHub Workshop Bot Date: Sat, 4 Jul 2026 10:34:09 -0700 Subject: [PATCH] fix(autograder): never grade seeded workshop issues as Challenge 2 submissions The Challenge 2 issue-filed autograder only guarded on author == actor, so peer simulation issues seeded with a user token (and any future App-token seeding, which also triggers workflows) got flagged with challenge-2-needs-revision labels and a Needs revision comment. Skip issues titled Peer Simulation:, Challenge, or Start Here: - those are workshop artifacts, not student submissions. The mislabels and comments this caused in the 8 cohort rooms have been cleaned up in place. Co-Authored-By: Claude Fable 5 --- .../.github/workflows/autograder-issue-filed.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/learning-room/.github/workflows/autograder-issue-filed.yml b/learning-room/.github/workflows/autograder-issue-filed.yml index ed2d2603..597b4767 100644 --- a/learning-room/.github/workflows/autograder-issue-filed.yml +++ b/learning-room/.github/workflows/autograder-issue-filed.yml @@ -20,8 +20,18 @@ jobs: acknowledge-issue: name: Acknowledge first issue runs-on: ubuntu-latest - # Only react when the author is the student (not a bot or facilitator pre-seeded issue). - if: github.event_name == 'workflow_dispatch' || (github.event.issue.user.login == github.actor && github.event.issue.user.type == 'User') + # Only react when the author is the student (not a bot or facilitator + # pre-seeded issue), and never grade seeded workshop artifacts: peer + # simulation issues, challenge issues, and the onboarding roadmap are + # created by automation or facilitators, not Challenge 2 submissions. + if: >- + github.event_name == 'workflow_dispatch' || ( + github.event.issue.user.login == github.actor && + github.event.issue.user.type == 'User' && + !startsWith(github.event.issue.title, 'Peer Simulation:') && + !startsWith(github.event.issue.title, 'Challenge ') && + !startsWith(github.event.issue.title, 'Start Here:') + ) steps: - name: Count issues authored by this student