Add three-branch workflow support to Makefile.agents.mk#10
Add three-branch workflow support to Makefile.agents.mk#10sebastientaggart merged 4 commits intodevfrom
Conversation
Release v0.2.0
Introduce STAGING_BRANCH variable (empty by default) and promote target for projects using feature → dev → staging → main workflow. Add staging branch to protected branch guards in pr, abandon, and merge targets. Update deploy-preview to push STAGING_BRANCH when set. Regenerate skill commands via sync.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Review SummaryVerdict: APPROVE Findings
No CRITICAL findings. Logic for STAGING_BRANCH guards in `pr`, `abandon`, and `merge` is correct. The `ifndef STAGING_BRANCH` guard in `promote` correctly catches both undefined and empty-string cases in GNU Make. Backwards compatibility is preserved via `?=` defaults. |
The deploy-preview behavior is a consumer Makefile concern, not controlled by Makefile.agents.mk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
STAGING_BRANCHvariable toMakefile.agents.mk(empty by default, backwards compatible)promotetarget to create PRs from integration → staging branchSTAGING_BRANCHto protected branch guards inpr,abandon, andmergetargetsdeploy-previewin consumer Makefile to push staging branch when in three-branch modeIssue #6