New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

autofill-commit-message

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autofill-commit-message

auto fill commit message

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

autofill-commit-message

Autofill commit message with keywords from branchname which matches the fixed format like @***.

中文文档

English Document

Install

npm i autofill-commit-message -D 

Where to use

You can put the jiraId on your branchname with asked format, then it will be automatically recognized and fill at end of your commit message for free what saves a lot of time for committing.

Usage

This plugin based on git hook commit-msg, and we recommend you use it with husky.

1. Install husky (skip when installed)

npm i -D husky 

2. Husky config

Autofill-commit-message meets two parameters。

One works for finding commit-msg file, please pass $HUSKY_GIT_PARAMS when use husky;

The other works for completing project which is not necessary when your branchname looks like feature@PROJECT-1234.

3. Branchname

Branchname should obey the rules like below;

git checkout -b feature@Pro-1234 或 git checkout -b feature@1234

4. Develop and commit

git commit -m 'fix: hotfix'

Result

Keywords

autofill-commit-message

FAQs

Package last updated on 19 May 2020

Did you know?

Socket

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.

Install

Related posts