Repository navigation
feat(hooks): allow renovate branches in the no-commit-to-branch guard - #1435
Merged
Merged
Conversation
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 a
(?!^renovate/.+$)allowance clause to the defaultno-commit-to-branchpattern inbranchNamePatternFor(nix/hooks.nix — the one definition), regenerating both committed YAML artifacts in lockstep. The Renovate app commits server-side where hooks never run, but maintainer fix-up commits onrenovate/*branches (changelog conflict merges,dist/rebuilds during batch weeks) were blocked, forcing the commit-on-a-compliant-branch-then-git push HEAD:renovate/…workaround. Renovate names carry no issue number and use a charset outside the slug rule (live:renovate/github-actions-(minor-and-patch)), so this is a dedicated namespace clause next toworktree/<n>, not a #1432 knob value.Changes
nix/hooks.nix: clause in the base pattern string (gitflow AND trunk variants), header comment extended with the rationale.pre-commit-config.yaml+assets/workspace/.pre-commit-config.yaml: pattern + convention comment regenerated (drift-gated)tests/test_flake_hooks.py:TestRenovateBranchAllowance— regex semantics on the portable render (allowed: real Renovate names; blocked:renovated/xprefix confusion, non-compliant names) + clause presence on the gitflow and trunk consumer surfacesCHANGELOG.md(+ hook-synced mirror): Unreleased/Changed entryTest evidence
renovate/lock-file-maintenance must be allowed), passes after the changetests/test_flake_hooks.py: 39 passed (incl. the portable-render drift gate over both YAMLs)just precommitfully green (sync-manifest changelog-mirror rewrite staged and converged)Refs: #1433