Repository navigation
feat(workspace): add branch-types knob (DEVKIT_BRANCH_TYPES) and CI branch-name gate - #1437
Merged
Merged
Conversation
4 tasks
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
Two halves, one SSoT (#1432, folding in #1430's enforcement gap per #1430 (comment)):
DEVKIT_BRANCH_TYPESknob — comma-separated full replacement of the issue-numbered branch-type set (<type>/<issue>-<slug>) in theno-commit-to-branchguard; thechore/,renovate/([FEATURE] feat(hooks): allow renovate/* branches in the default no-commit-to-branch guard #1433), andworktree/clauses stay fixed. Rendered into all three surfaces from one key: the scaffolded YAML (anchored BRE sed), the flake consumer surface (branchNamePatternForgains a types parameter;mkProjectShellgainsbranchTypes ? nullwith a loud eval-time charset assert; the template flake.nix reads the key from.vig-osand forwards it under afunctionArgsguard — pre-[FEATURE] feat(workspace): scaffold-time branch-types knob (DEVKIT_BRANCH_TYPES) for the branch guard + mkProjectShell branchTypes #1432 consumer flakes hand-port the block, documented in MIGRATION.md), and CI (below). Defaults are byte-identical everywhere (drift gate + zero-hooks parity).branch-typesresolve-toolchain output, fail-safe to stock on bad values). The allowed set is a commented superset of the local guard's:main|dev,chore/<slug>(also covers sync-main-to-dev + devkit-upgrade bot branches),<type>/<issue>-<slug>,worktree/<n>,renovate/*,release/X.Y.Z. The same step lands in devkit's own bespoke ci.yml with the stock set inline — the repo that defines the standard now enforces it on itself (the A fresh clone does not enforce devkit's own commit rules until scripts/init.sh runs #1430 incident:feat/rust-language-packfrom an un-initialised clone is now caught at PR time).The trunk workflow special-case in the consumer render generalizes to one
effectivePattern != branchNamePatterncomparison — workflow (#1224) and branch types feed a single computation.Companion (cross-repo, pre-train prerequisite)
The allowance inventory surfaced that devkit-smoke-test's deploy PRs ride
chore/deploy-<tag>with dotted tags (chore/deploy-1.7.1-rc1), which the gate rejects. Fixed at the source per the established dot-free lane-branch convention: vig-os/devkit-smoke-test PR (linked in a comment below) must merge to smoke-test main (the dispatch listener runs from the default branch) before the 1.7.1 train's smoke stage.Test evidence
KeyError: 'branch-types', missing step), flake fixtureunexpected argument 'branchTypes', 4 bats failures — all for the right reasons before the implementation commitjust precommitfully greenrelease/1.7.1,renovate/lock-file-maintenance,chore/foo-bar,feature/12-x,worktree/9,record/54-x(custom types) accepted;feat/rust-language-pack(the A fresh clone does not enforce devkit's own commit rules until scripts/init.sh runs #1430 literal) andrandom-branchrejectedRefs: #1432