
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
git-commit-template
Advanced tools
Sets commit template for your git projects. This is a husky plugin which should
be used on prepare-commit-msg hook exposed by git.
When we do git commits we usually follow a practice for the commit message, this
package aims to streamline that practice by providing you a standard template to
follow. It also enables you to set your own standard template. With this plugin
setup, next time when you do git commit you will get the standard template for
commit message set for you.
For installing this plugin you need husky
>= 1.x. Use npm to install this plugin to your package:
npm i --save-dev git-commit-template husky@1
Note: We have tested the plugin with husky@1 but you can try with higher versions too if that works for you
It exposes a cli command with name git-commit-template which you can use in
your husky configuration. For example:
// .huskyrc.js
module.exports = {
hooks: {
"prepare-commit-msg": "git-commit-template",
},
};
git-commit-template commandThis command takes an optional parameter of your commit message file name. If
provided, then it will read the file provided by you, otherwise uses its default
configuration file. Read .commit-msg file to see the default
configuration added by us.
Sample for providing file name:
// .huskyrc.js
module.exports = {
hooks: {
"prepare-commit-msg": "git-commit-template .my-custom-git-msg-file",
},
};
Note: This hooks provides you default commit message only if you haven't provided any yet. This means that this plugin will not add message if you are amending your commit(
git commit --amend) or using interactive rebase (git rebase -i HEAD~3).
This library is licensed under the Apache 2.0 License.
FAQs
Set commit template for git packages
The npm package git-commit-template receives a total of 104 weekly downloads. As such, git-commit-template popularity was classified as not popular.
We found that git-commit-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.