From 7e41aae468b43b18183d56dff312fa3a99ab19aa Mon Sep 17 00:00:00 2001 From: Prajjwal Poudel <85762481+iamprazol@users.noreply.github.com> Date: Fri, 4 Dec 2026 08:29:45 +0545 Subject: [PATCH 1/2] Fix - Run the QA suite only on an @claudegrill suite comment --- .github/workflows/qa-suite.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/qa-suite.yml b/.github/workflows/qa-suite.yml index 3b053c17..f5930795 100644 --- a/.github/workflows/qa-suite.yml +++ b/.github/workflows/qa-suite.yml @@ -3,14 +3,19 @@ # 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 ONLY by an `@claudegrill suite` comment on a PR. 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 +29,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 From 8e50847ddd055c0c7d9181600b5135f9b616141a Mon Sep 17 00:00:00 2001 From: Prajjwal Poudel <85762481+iamprazol@users.noreply.github.com> Date: Fri, 4 Dec 2026 08:58:55 +0545 Subject: [PATCH 2/2] Fix - Say a manual dispatch also runs the QA suite and drop stale pull_request and tag comments --- .github/workflows/qa-suite.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa-suite.yml b/.github/workflows/qa-suite.yml index f5930795..1f73a7da 100644 --- a/.github/workflows/qa-suite.yml +++ b/.github/workflows/qa-suite.yml @@ -7,8 +7,10 @@ # 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, started ONLY by an `@claudegrill suite` comment on a PR. Opening a PR, -# or pushing to one, starts nothing. Nothing runs on a schedule. Testing the +# 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. #