Skip to content

Commit fac80cb

Browse files
accesswatchGitHub Workshop Botclaude
authored
fix(autograder): never grade seeded workshop issues as Challenge 2 submissions (#243)
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: GitHub Workshop Bot <workshop@example.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 0913029 commit fac80cb

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎learning-room/.github/workflows/autograder-issue-filed.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ jobs:
2020
acknowledge-issue:
2121
name: Acknowledge first issue
2222
runs-on: ubuntu-latest
23-
# Only react when the author is the student (not a bot or facilitator pre-seeded issue).
24-
if: github.event_name == 'workflow_dispatch' || (github.event.issue.user.login == github.actor && github.event.issue.user.type == 'User')
23+
# Only react when the author is the student (not a bot or facilitator
24+
# pre-seeded issue), and never grade seeded workshop artifacts: peer
25+
# simulation issues, challenge issues, and the onboarding roadmap are
26+
# created by automation or facilitators, not Challenge 2 submissions.
27+
if: >-
28+
github.event_name == 'workflow_dispatch' || (
29+
github.event.issue.user.login == github.actor &&
30+
github.event.issue.user.type == 'User' &&
31+
!startsWith(github.event.issue.title, 'Peer Simulation:') &&
32+
!startsWith(github.event.issue.title, 'Challenge ') &&
33+
!startsWith(github.event.issue.title, 'Start Here:')
34+
)
2535
2636
steps:
2737
- name: Count issues authored by this student

0 commit comments

Comments
 (0)