Add workflow to create PRs from the Gardener backlog - #8511
Draft
gonzaloriestra wants to merge 1 commit into
Draft
Add workflow to create PRs from the Gardener backlog#8511gonzaloriestra wants to merge 1 commit into
gonzaloriestra wants to merge 1 commit into
Conversation
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.
WHY are these changes introduced?
Turn prioritized Gardener backlog issues into reviewable CLI fixes.
WHAT is this pull request doing?
Adds
gardener-backlog-prsto pick one open CLI issue from the Gardener board, ordered P0, P1, P2, and so on, and use Claude to create a draft PR and share its linked title in#devtools-gardener-backlog. Runs daily at 00:00 UTC or manually.Selection follows view 61's current filter, includes Backlog and Untriaged issues, puts unprioritized work last, and skips prior workflow PRs. Equal priorities use oldest-first order. Reads the board and private issues with
SHOP_GH_READ_CONTENT_TOKEN; creates CLI PRs withGITHUB_TOKEN.How to test your changes?
After merge, use Actions → gardener-backlog-prs → Run workflow. Verify that it selects the highest-priority eligible CLI issue and either creates one draft PR with a Slack notification or exits without a PR when no suitable fix exists.
Validated with 10 selection tests, Actionlint, Prettier, and a workflow simulation covering private issue context, Slack links, no-PR results, and access failures. A read-only query against the real board also passed using local credentials. No live Claude or Slack run was triggered.
Post-release steps
The first Actions run must confirm whether
SHOP_GH_READ_CONTENT_TOKENhas Projects read access inshopand Issues read access toshop/issues-developandshop/issues. If access fails, replace that secret with an appropriately authorized token.GitHub may require a maintainer to select Approve workflows to run on generated PRs before their CI starts.
Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add