Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.13 KB

File metadata and controls

39 lines (31 loc) · 1.13 KB

prepare-commit-msg-angular

version MIT License

Basic Usage

This provides you a binary that you can use as a githook to prepare a commit message following Angular guidelines and display documentation about it.

To be used in addition to validate-commit-msg.

  "scripts": {
    "preparecommitmsg": "prepare-commit-msg-angular",
  }
  "config": {
    "ghooks": {
      "prepare-commit-msg": "prepare-commit-msg-angular $2 $3"
    }
  }

Message Template

By default, the default.tpl will be shown in your git editor.

You can also specify your preferred message template by -t option.

e.g.

    "config": {
        "ghooks": {
            "prepare-commit-msg": "prepare-commit-msg-angular $2 $3 -t tpl_file_path"
        }
    }