Commit graph

23 commits

Author SHA1 Message Date
Marc Durdin
b45b759354 chore: make git pre-commit hook executable 2022-10-31 16:13:58 +11:00
Marc Durdin
a4ca7968b9 chore(common): make scripts executable and add pre-commit test 2022-09-19 13:59:09 +10:00
Eberhard Beilharz
7e245bcef3
chore(common): Don't check for conventional commit for fixups
This change allows to add fixup commits by running the command
`git commit --fixup=<sha>` without complaining about the commit
message not being in conventional commit format. (Running the
git command will result in the commit title of the referenced
commit with `fixup!` prepended. It will later be squashed with
the referenced commit in a git rebase.)
2021-10-28 10:56:28 +02:00
Marc Durdin
ee52b40307 chore: exclude parens if no scope in commit msg
If no scope is found in the branch name, then don't include the
parentheses around the scope, as this breaks automatic merge messages
and the parentheses are unnecessary.
2020-10-05 13:59:32 +11:00
Marc Durdin
9c4db22219 chore(common/resources): cleanup 2020-05-20 12:27:47 +10:00
Marc Durdin
b69490ea39 fix(common/resources): allow custom commit-msg-defs 2020-05-20 12:25:58 +10:00
Marc Durdin
d64014734b chore(common/resources): update prepare-commit-msg with global scopes 2020-05-19 17:32:26 +10:00
Marc Durdin
c60df18ee0 chore(common/resources): add documentation for scopes 2020-05-19 17:31:17 +10:00
Marc Durdin
13b44a7e30 chore(common/resources): use shared scopes definition
This starts the shared scope definition. First cab off the rank is commit-msg
2020-05-19 17:08:57 +10:00
Eberhard Beilharz
30e48ab29c
chore: Allow to override hook defs
This change allows a different project to override the definitions
by providing a local `commit-msg-defs` file while still sharing the
`commit-msg` hook. Other projects might have a different set of
scopes.
2020-05-08 11:46:35 +02:00
Eberhard Beilharz
35c6208273 refactor(common): Simplify and improve getting hook directory 2020-02-20 21:44:46 +01:00
Joshua Horton
0574d28eea
Update resources/git-hooks/commit-msg-defs
Co-Authored-By: Darcy Wong <darcywong00@users.noreply.github.com>
2020-02-06 11:53:49 +07:00
jahorton
3c4679ae6f feat(common): Proper docs, extra tweak 2020-02-06 11:01:08 +07:00
jahorton
c81729fbe0 feat(common): creates common type/scope defn script for inclusion 2020-02-06 10:56:39 +07:00
Marc Durdin
e2b287768c chore(ci): tweak scopes 2020-02-06 10:42:58 +07:00
Marc Durdin
f4c205e9fc chore(ci): tweak commit hook 2020-02-06 10:42:54 +07:00
jahorton
538aa7d14b feat(common): tweaks documentation, does cleanup 2020-02-04 12:53:44 +07:00
jahorton
714198c777 feat(common): Autogenerates commit prefixes from branch name 2020-02-04 12:42:58 +07:00
jahorton
886e7d294d feat(common): basic prepare-commit-msg setup, link 2020-02-04 10:48:17 +07:00
Eberhard Beilharz
830c31eece fix: Fix commit-msg hook
Make commit-msg hook executable. Also use bash - Ubuntu has `dash`
linked as `/bin/sh` which doesn't support some of the features we use
in the hook.
2019-10-29 13:30:03 +07:00
Marc Durdin
e5514a4c21 chore: test only keymanapp/ (for git protocol) 2019-10-29 14:01:20 +11:00
Marc Durdin
55b115f97d chore: disable debugging code 2019-10-29 12:59:24 +11:00
Marc Durdin
b35f263335 chore: Add Conventional commits Git message hook
Adds support for conventional commit style validation of all commit
messages and makes configuration against all Keyman repos
straightforward with the configure-repo.sh script.
2019-10-28 16:50:55 +11:00