Pre-populate commit message. Example pre-populated message:
[ryuichi,john][24]
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Changes to be committed:
# new file: README.md
#Here, ryuichi and john are pair programming. 24 is a card id.
To use this command, save it as .git/hooks/prepare-commit-msg.
commit-msg takes current co-author(s) and task ID(s) from .commit-msg.yaml file
on the repository root. It has the following format:
authors:
- ryuichi
- john
# - bill # Bill is not my pair mate today
task_ids:
- 24
# - docsTo test this command, invoke this with following arguments.
$ .git/hooks/prepare-commit-msg <commit-message-file> <commit-source> <commit-sha>- stack
-
Unit test
stack test -
End-to-end test
test-e2e/run.sh