Uh oh!
There was an error while loading. Please reload this page.
ci: add reusable advance-deploy-env workflow - #3
Merged
Conversation
Reusable workflow that updates a PR's project Deploy environment field when its parent branch (develop/staging/master/main) receives a merge. Behavior per branch: - develop → Deploy env = dev - staging → Deploy env = staging - master/main → Deploy env = prod AND Status = Done Each active repo will reference this with a thin caller workflow. Until callers are wired up, this file is dormant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 freeto 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 a reusable workflow at
.github/workflows/advance-deploy-env.ymlthat each active repo will call on push todevelop,staging,master, ormain. For every PR contained in the push, it updates the PR's project card:developmerge →Deploy environment = devstagingmerge →Deploy environment = stagingmaster/mainmerge →Deploy environment = prodandStatus = DoneThis implements the "Done = shipped to prod" model from the kanban redesign — Status sits in
Validationwhile a PR is on dev/staging, and only flips toDonewhen production-merged.Why a reusable workflow
Same pattern as the kanban auto-add: write the logic once, call it from each repo with a 5-line caller. No duplication, easy to update.
Dependencies
PROJECTS_KANBAN_TOKEN(already configured)Deploy environmentandStatuson engineer kanban (already created)Activation
This PR alone does not change anything — the file is dormant until each repo opts in by adding a thin caller workflow. Caller rollout will be a follow-up batch of PRs.
Test plan
chore/foo) is a no-op (workflow logic checksref_name)develop, verify the PR'sDeploy environmentfield flips todevon the project boardmaster/mainmerge: verifyStatusflips toDoneandDeploy environmentflips toprod🤖 Generated with Claude Code