Skip to content

chore(husky): enforce the RSRMID branch name with a pre-push hook - #21

Merged
KaiSchwarz-cnic merged 1 commit into
mainfrom
RSRMID-3120-pre-push-branch-name
Oct 19, 2026
Merged

KaiSchwarz-cnic merged 1 commit into
mainfrom
RSRMID-3120-pre-push-branch-name

Conversation

@KaiSchwarz-cnic

Copy link
Copy Markdown
Contributor

Jira: RSRMID-3120

Adds the husky pre-push hook from rtldev-middleware-template#17, byte-identical. It rejects any pushed branch whose name is not RSRMID-<n>-<lowercase-slug>.

  • The default branch, tags and deletions are skipped. The default branch is resolved from the remote, never hardcoded.
  • There is no RSRMID-0000 fallback. SKIP_BRANCH_CHECK=1 overrides the check for a deliberate exception.
  • Skipped when CI=true, like pre-commit. Bot branches are created on GitHub and never pass through it.

The CLAUDE.md branch-naming rule now says the name is enforced. This is chore, so it triggers no release.

🤖 Generated with Claude Code

Rejects any pushed branch other than the default branch whose name is not
RSRMID-<n>-<lowercase-slug>. Tags and deletions are skipped;
SKIP_BRANCH_CHECK=1 overrides it. Copied from rtldev-middleware-template.

RSRMID-3120
@KaiSchwarz-cnic
KaiSchwarz-cnic merged commit 2a7a9e2 into main Oct 19, 2026
7 checks passed
@KaiSchwarz-cnic
KaiSchwarz-cnic deleted the RSRMID-3120-pre-push-branch-name branch October 19, 2026 09:23
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant