Add gardener workflows#234
Open
byrichardpowell wants to merge 2 commits into
Open
Conversation
Adds two workflows that react to new issues and PRs: - `gardener-notify-event.yml` captures the triggering payload as an artifact on issue/PR open and on `devtools-gardener` label events. Uses `pull_request_target` so Dependabot- and fork-opened PRs still produce an artifact. - `gardener-notify-slack.yml` runs on `workflow_run` completion, downloads the artifact, applies the `devtools-gardener` label on first open, and posts a summary to Slack. Split into two workflows because Dependabot-triggered workflows lose write permissions and secret access; the `workflow_run` follow-up runs in the default-branch context with full permissions regardless of the upstream actor. Requires a `SLACK_GARDENER_BOT_TOKEN` secret and `GARDENER_SLACK_CHANNEL_ID` variable, plus a `devtools-gardener` label. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a workflow that runs `anthropics/claude-code-action` to investigate GitHub issues in this template repository, plus the skill it invokes. - `.github/workflows/gardener-investigate-issue.yml` triggers on the `devtools-investigate-for-gardener` label or `workflow_dispatch`. Posts a starter message to Slack, runs the investigation in a structured-output JSON schema, writes the report to the job summary, and posts a threaded follow-up with the Summary section to Slack. - `.claude/skills/investigating-github-issues/` contains the skill and a report template tailored for this template (single React Router app, not a monorepo — scopes edits to `app/`, `extensions/`, `prisma/`, `public/`, and root config files; flags library bugs that belong in `Shopify/shopify-app-js`). - `.claude/skills/shared/references/version-maintenance-policy.md` is the shared policy referenced by the skill. Requires `ANTHROPIC_API_KEY` and `SLACK_GARDENER_BOT_TOKEN` secrets, `GARDENER_SLACK_CHANNEL_ID` variable, and a `devtools-investigate-for-gardener` label. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
d10987c to
8c403f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the gardener tooling from
shopify-app-jsto this template repo:gardener-notify-event.yml+gardener-notify-slack.yml— auto-label new issues/PRs withdevtools-gardenerand post a summary to Slack. Split into two workflows so Dependabot-opened PRs (which loseGITHUB_TOKENwrite access and Actions secrets) still get labeled and notified via theworkflow_runfollow-up.gardener-investigate-issue.yml— runsanthropics/claude-code-actionon issues labeleddevtools-investigate-for-gardener. Posts a starter Slack message, runs the investigation against a structured JSON schema, writes the report to the job summary, and threads the Summary section back to Slack..claude/skills/investigating-github-issues/— skill invoked by the workflow, tailored for this template:app/,extensions/,prisma/,public/, and root config (not a monorepo, so nopackages/mention).@shopify/shopify-app-react-routerand should be redirected toShopify/shopify-app-js.package.jsoninstead of a published library version.Setup required (post-merge)
devtools-gardener,devtools-investigate-for-gardenerANTHROPIC_API_KEY,SLACK_GARDENER_BOT_TOKEN(+ optionalANTHROPIC_BASE_URL)GARDENER_SLACK_CHANNEL_IDTest plan
devtools-gardeneranddevtools-investigate-for-gardenerlabelsdevtools-gardeneris applied and Slack gets a postdevtools-investigate-for-gardenerto a real issue — confirm the investigation runs and reports back🤖 Generated with Claude Code