Skip to content

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

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#186
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/_lib.sh.git-hooks/_helpers.sh for fleet consistency, adopting the canonical content (function filter_allowed_api_keys, YELLOW color, FAKE_TOKEN_LEGACY kept until this repo's fixture rename completes).
  • Update call sites: filter_allowed_sktsecfilter_allowed_api_keys in 3 hook files.
  • Add Linear-ref block to commit-msg (27 team keys + linear.app URLs).

Test plan

  • commit-msg blocks ENG-1234, passes clean messages, ignores UTF-8/SHA-256.
  • pre-commit and pre-push syntax-check clean with bash -n.
  • FAKE_TOKEN_LEGACY preserves compatibility with current test/unit/utils/fake-tokens.ts fixtures.

…ommit-msg

Rename _lib.sh to _helpers.sh with fleet-canonical content: function
renamed from filter_allowed_sktsec to filter_allowed_api_keys, plus
YELLOW color and FAKE_TOKEN_LEGACY constant (kept during the fixture
rename from socket-lib-test-fake-token to socket-test-fake-token).
Call sites in commit-msg/pre-commit/pre-push updated. Add Linear-ref
check to commit-msg (27 team keys + linear.app URLs).
@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