
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
commitlint-config-jira
Advanced tools
A recomended config who contain preconfigured rules for jira commits messages style
commitlint-config-jira checks if your commit messages meet the Jira conventional commit format.
The author of this package is looking for a job opportunity to make some π΄ for a living. If you have any offers reach me out on LinkedIn or Mail. Thanks in advance!
For Tips and Advanced Usage you can read this Blog Post
npm install --save-dev @commitlint/cli commitlint-plugin-jira-rules commitlint-config-jira
// commitlint.config.js
module.exports = {
plugins: ['commitlint-plugin-jira-rules'],
extends: ['jira'],
}
Run the following in your terminal to create the proper hook.
npx husky add .husky/commit-msg 'commitlint --edit $1'
For version 4 and under of Husky use the following syntax instead in your package.json
.
// package.json
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
jira-task-id-empty
- this rule check if commit message task id is not empty.
// If your task do not have an id use a conventional task id e.g: IB-0000
// β Bad commit messages
git commit -m"My commit message body"
git commit -m":My commit message body"
// β
Good commit messages
git commit -m"IB-2121, IB-21: My commit message body"
git commit -m"IB-0000: My commit message body"
jira-task-id-max-length
- this rule check if jira task id length is loonger that the provided value.
// Preconfigured and recommended value in commitlint-config-jira is 9 chars
// β Bad commit messages
git commit -m"IB-2121212121212121: My commit message body"
// β
Good commit messages
git commit -m"IB-2121: My commit message body"
git commit -m"IB-21: My commit message body"
jira-task-id-min-length
- this rule check if jira task id length is shorter that the provided value.
// Preconfigured and recommended value in commitlint-config-jira is 3 chars
// β Bad commit messages
git commit -m"I1: My commit message body"
// β
Good commit messages
git commit -m"IB-2121: My commit message body"
git commit -m"IB-21: My commit message body"
jira-task-id-case
- this rule check if taskId is in provided case.
// Preconfigured and recommended value in commitlint-config-jira is "uppercase"
// β Bad commit messages
git commit -m"ib-21: My commit message body"
// β
Good commit messages
git commit -m"IB-2121, IB-21: My commit message body"
git commit -m"IB-21: My commit message body"
jira-task-id-separator
- this rule check if taskId header and footer is separated with provided value.
// Preconfigured and recommended value in commitlint-config-jira is "-"
// β Bad commit messages
git commit -m"IB/21: My commit message body"
git commit -m"IB_21 :My commit message body"
// β
Good commit messages
git commit -m"IB-2121, IB-21: My commit message body"
git commit -m"IB-21: My commit message body"
jira-task-id-project-key
- this rule check if commit message task id starts with specific project key.
// Accept a string or an array of strings, by default is disabled
// For example ["PRJ1", "PRJ2"]
// β Bad commit messages
git commit -m"IB-21: My commit message body"
// β
Good commit messages
git commit -m"PRJ1-21, PRJ1-22: My commit message body"
git commit -m"PRJ2-21: My commit message body"
jira-commit-status-case
- this rule check if commit status is in provided case.
// Preconfigured and recomended value in commitlint-config-jira is "uppercase"
// β Bad commit messages
git commit -m"[wip]IB-21: My commit message body"
// β
Good commit messages
git commit -m"[WIP]IB-21: My commit message body"
jira-commit-message-separator
- this rule check if commit message separator match provided separator.
// Preconfigured and recomended value in commitlint-config-jira is ":"
// β Bad commit messages
git commit -m"IB-21/ My commit message body"
git commit -m"IB-21 - My commit message body"
git commit -m"IB-21% My commit message body"
// β
Good commit messages
git commit -m"IB-21: My commit message body"
commitlint-jira-config
rulesFor Tips and Advanced Usage you can read this Blog Post
// commitlint.config.js
module.exports = {
plugins: ['commitlint-plugin-jira-rules'],
extends: ['jira'],
rules: {
// to Customise/Override a rule
+ 'jira-task-id-max-length': [2, 'always', 10]
// to turn off a rule
+ 'jira-task-id-max-length': [0]
},
}
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
@Gherciu/commitlint-jira Released under the MIT License.
Authored and maintained by GHERCIU GHEORGHE with help from contributors (list).
FAQs
A recomended config who contain preconfigured rules for jira commits messages style
The npm package commitlint-config-jira receives a total of 0 weekly downloads. As such, commitlint-config-jira popularity was classified as not popular.
We found that commitlint-config-jira 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.