diff --git a/.github/workflows/qa-suite.yml b/.github/workflows/qa-suite.yml index 3b053c1..1f73a7d 100644 --- a/.github/workflows/qa-suite.yml +++ b/.github/workflows/qa-suite.yml @@ -3,14 +3,21 @@ # THIS IS THE ONLY PR CHECK MOST PRODUCTS NEED. No ANTHROPIC_API_KEY, no agent, # runner minutes only. # -# It works without AI because the developer already wrote the spec: they ran -# /claudegrill:verify-fix locally, write-spec added a @fresh spec to their -# branch, and they committed it with the fix. By the time CI sees the PR the -# regression is already a deterministic assertion. +# It works without AI because the specs are already written. QA analyse the +# change, run /claudegrill:write-spec themselves (giving it context), and push +# the specs to the PR where they are needed. The developer writes none. # -# ONE job, on pull requests only. Nothing runs on a schedule: the team's model is -# a local /claudegrill:verify-fix while the fix is being written, and the e2e -# suite on the PR. No cron, no nightly, no WordPress-core watcher. +# ONE job, started by an `@claudegrill suite` comment on a PR, or by hand +# (workflow_dispatch asks for everything, so it is deliberately not gated on the +# comment). Opening a PR, or pushing to one, starts nothing. Nothing runs on a +# schedule. Testing the +# WHOLE product against the written specs is the release lead's job, locally, +# with `pnpm test:e2e`. No cron, no nightly, no WordPress-core watcher. +# +# Comment `@claudegrill suite` once the specs are pushed. Only owners, members and +# collaborators can trigger it, and never on a PR from a fork. A comment does +# nothing until THIS FILE IS ON THE DEFAULT BRANCH, because GitHub reads +# `issue_comment` workflows from there and never from the PR. # # `scope: changed` narrows a run to the areas the diff maps to. That is safe by # construction — a changed file matching no `area_paths` pattern in @@ -24,13 +31,17 @@ name: QA suite on: - pull_request: - types: [opened, synchronize, reopened, ready_for_review] + issue_comment: + types: [created] workflow_dispatch: jobs: # The only check. Scoped, fast, runs on every PR including drafts. pr: + # Every comment on every issue and PR fires `issue_comment`. Anything that + # is not the command stops here and never starts the reusable workflow, + # which checks the command again and also who wrote it. + if: github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '@claudegrill suite') uses: ThemeGrill/claudegrill/.github/workflows/suite.yml@main with: product_slug: spacious