feat: merge gate status checks in no-backend mode#2578
Open
azanar wants to merge 1 commit intodiggerhq:developfrom
Open
feat: merge gate status checks in no-backend mode#2578azanar wants to merge 1 commit intodiggerhq:developfrom
azanar wants to merge 1 commit intodiggerhq:developfrom
Conversation
In no-backend mode, set pending commit statuses before RunJobs and set digger/apply to pending after a successful plan. This allows users to add digger/apply as a required status check in branch protection to block merge until `digger apply` is run. Previously, no-backend mode only set success/failure statuses after execution, with no way to gate merge on apply without the full orchestrator backend. Co-Authored-By: Claude Opus 4.6 <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 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 merge-gate commit status checks to no-backend (backendless) mode. This is the minimal change needed to support "must apply before merge" workflows without the full orchestrator backend.
Changes
In
cli/pkg/github/github.go:RunJobs: Setdigger/planordigger/applyto pendingdigger/planto success ANDdigger/applyto pendingdigger/applyto success (unchanged)Why
Currently, no-backend mode sets success/failure statuses after execution but never sets a pending status. This means there's no way to gate merge on apply —
digger/planpasses after plan, and there's nothing blocking merge until apply runs.The full orchestrator backend solves this (Go server + Postgres), but that's heavy for single-repo setups that just want the merge gate.
How to use
digger/applyas a required status check in GitHub branch protectiondigger planruns on a PR,digger/applywill be pending — merge blockeddigger apply—digger/applyflips to success — merge unblockedBackward compatibility
No breaking changes. The pending statuses are additive — existing workflows that don't use required status checks are unaffected.
Test plan
digger/planshows as pending, then successdigger/applyshows as pending after plandigger applydigger/applyflips to success