Skip to content

ryu1kn/commit-msg

Repository files navigation

CI

commit-msg

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.

Usage

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
  # - docs

To test this command, invoke this with following arguments.

$ .git/hooks/prepare-commit-msg <commit-message-file> <commit-source> <commit-sha>

Development

Prerequisites

  • stack

Test

  • Unit test

    stack test
  • End-to-end test

    test-e2e/run.sh

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors