Skip to content

chore(hooks): unify helpers as _helpers.sh and block Linear refs in commit-msg#273

Closed
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/unify-git-hook-helpers
Closed

chore(hooks): unify helpers as _helpers.sh and block Linear refs in commit-msg#273
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/unify-git-hook-helpers

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

Summary

  • Rename .git-hooks/_api-key-check.sh.git-hooks/_helpers.sh for fleet consistency.
  • Add Linear-ref block to commit-msg: rejects messages containing <TEAM>-<N> for any of the 27 Socket Linear team keys, or linear.app/... URLs. Git comment lines ignored.

Why

  • One canonical helper filename across the fleet lets hook changes propagate cleanly.
  • Commit history should be tool-agnostic: Linear refs belong in Linear.

Test plan

  • bash .git-hooks/commit-msg <msg with ENG-1234> exits 1.
  • Clean message exits 0.
  • UTF-8, SHA-256, CVE-2024-1234 do not trigger (no false positives).

…ommit-msg

Rename _api-key-check.sh to _helpers.sh for fleet consistency. Add a
commit-msg check that rejects messages containing Linear issue IDs
(any of 27 Socket workspace team keys) or linear.app/... URLs — Linear
tracking belongs in Linear, not the commit history.
@jdalton
Copy link
Copy Markdown
Collaborator Author

Converting to branch-only push per repo owner — branch stays available, no PR needed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant