feat: vault PRs should auto-merge after approval #170
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Vault PRs on the ops repo currently require a human to both approve and merge. The human should only need to approve — the merge should happen automatically once the required approvals are collected.
The vault is a decision gate, not a manual merge workflow. The human's role is to review the action TOML and approve or reject. The system handles the rest.
Current behavior
Desired behavior
Proposed solution
1. Branch protection on ops repo
mainConfigure via Forgejo API or
lib/branch-protection.sh:required_approvals = 1(at least one human approval)dismiss_stale_approvals = true2. Enable auto-merge when creating vault PRs
After creating the PR in
lib/vault.sh:vault_request()andbin/disinto:disinto_release(), call the Forgejo auto-merge API:This tells Forgejo to merge automatically once branch protection requirements (approvals) are satisfied.
3. Forgejo repo setting
Enable auto-merge on the ops repo:
And ensure the
enable_automergesite setting is active.Affected files
lib/vault.sh— add auto-merge API call after PR creationbin/disinto— add auto-merge indisinto_release()after PR creationlib/branch-protection.sh— ensure required_approvals is set on ops repoAcceptance criteria
docs/VAULT.mdupdated to reflect the approval-based workflow