Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

0040_branch_protection_auto_merge.sql

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

0040_branch_protection_auto_merge.sqlBlame14 lines · 1 contributor
4626e61Claude1-- Block K2 — AI-gated auto-merge.
2--
3-- Adds an opt-in `enable_auto_merge` flag to each branch-protection rule.
4-- When true, the K3 autopilot ticker may auto-merge PRs whose base branch
5-- matches this rule — provided every other gate the manual-merge path
6-- enforces is green. Default-deny on purpose: owners must explicitly turn
7-- this on per rule.
8--
9-- NOTE: this should have been named 0039 per the K2 spec, but the
10-- repair-flywheel work landed first and took the 0039 slot, so we ship as
11-- 0040 to keep migration ordering monotonic and additive.
12
13ALTER TABLE "branch_protection"
14 ADD COLUMN IF NOT EXISTS "enable_auto_merge" boolean NOT NULL DEFAULT false;