Add gardener workflows - #16
Closed
byrichardpowell wants to merge 1 commit into
Closed
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>
Collaborator
Author
|
Superseded by https://github.com/shop/world/pull/629221 — these workflows are authored in the shop/world monorepo under |
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 auto-label + Slack notification workflows from
shopify-app-js:gardener-notify-event.ymlcaptures the triggering payload as an artifact on issue/PR open and ondevtools-gardenerlabel events. Usespull_request_targetso Dependabot- and fork-opened PRs still produce an artifact.gardener-notify-slack.ymlruns onworkflow_runcompletion, downloads the artifact, applies thedevtools-gardenerlabel on first open, and posts a summary to Slack.Split into two workflows because Dependabot-triggered workflows lose
GITHUB_TOKENwrite access and Actions secrets; theworkflow_runfollow-up runs in the default-branch context with full permissions regardless of the upstream actor.No investigate workflow in this repo — just the notify pair.
Setup required (post-merge)
devtools-gardenerSLACK_GARDENER_BOT_TOKENGARDENER_SLACK_CHANNEL_IDTest plan
devtools-gardenerlabeldevtools-gardeneris applied and Slack gets a post🤖 Generated with Claude Code