@dgc-org/commitlint-config-conventional-changelog-for-jira

中文文档
1.2.6发布于 2021/11/17MITCommonJS近 30 天下载 2788

Shareable commitlint config enforcing the angular commit convention and Jira smart commits

原始使用文档
文档目录5 节
  1. Getting started
  2. Disabling commitlint
  3. Rules
  4. Problems
  5. Warnings

@dgc-org/commitlint-config-conventional-changelog-for-jira

Shareable commitlint config enforcing the Angular commit convention and Jira Smart Commit Syntax. Based on @commitlint/config-angular.

Use with @dgc-org/cz-conventional-changelog-for-jira, @commitlint/cli.

Getting started

npm install --save-dev @dgc-org/commitlint-config-conventional-changelog-for-jira @commitlint/cli
echo "module.exports = {extends: ['@dgc-org/commitlint-config-conventional-changelog-for-jira']};" > commitlint.config.js

Disabling commitlint

In some cases it might be useful to be able to skip linting, e.g. when lacking access to Jira or having to do nasty things in GitOps. This configuration skips the linting process altogether if either of these conditions are satisfied:

  • Commit message starts with WIP:, e.g. WIP: the office is burning down, need to save my work
  • Environment variable COMMITLINT_DISABLE is set to true (case-insensitive) or 1

This mechanism should only be used in situations where there's no alternative to it, rather than to ignore fixable validation failures.

Rules

Problems

The following rules are considered problems for @dgc-org/commitlint-config-conventional-changelog-for-jira and will yield a non-zero exit code when not met. Consult docs/rules for a list of available rules.

type-enum

  • condition: type is found in value
  • rule: always
  • value
[
  "feat",
  "fix",
  "docs",
  "refactor",
  "test",
  "style",
  "build",
  "ci",
  "chore",
  "revert",
  "perf",
  "wip",
]
echo "foo: some message" # fails
echo "fix: some message" # passes

type-case

  • description: type is in case value
  • rule: always
  • value
'lowerCase'
echo "FIX: some message" # fails
echo "fix: some message" # passes

type-empty

  • condition: type is empty
  • rule: never
echo ": some message" # fails
echo "fix: some message" # passes

scope-case

  • condition: scope is in case value
  • rule: always
'lowerCase'
echo "fix(SCOPE): some message" # fails
echo "fix(scope): some message" # passes

subject-case

  • condition: subject is in one of the cases ['sentence-case', 'start-case', 'pascal-case', 'upper-case']
  • rule: never
echo "fix(SCOPE): Some message" # fails
echo "fix(SCOPE): Some Message" # fails
echo "fix(SCOPE): SomeMessage" # fails
echo "fix(SCOPE): SOMEMESSAGE" # fails
echo "fix(scope): some message" # passes
echo "fix(scope): some Message" # passes

subject-empty

  • condition: subject is empty
  • rule: never
echo "fix:" # fails
echo "fix: some message" # passes

subject-full-stop

  • condition: subject ends with value
  • rule: never
  • value
'.'
echo "fix: some message." # fails
echo "fix: some message" # passes

header-max-length

  • condition: header has value or less characters
  • rule: always
  • value
72
echo "fix: some message that is way too long and breaks the line max-length by several characters" # fails
echo "fix: some message" # passes

Warnings

The following rules are considered warnings for @dgc-org/commitlint-config-conventional-changelog-for-jira and will print warning messages when not met.

body-leading-blank

  • condition: Body begins with blank line
  • rule: always

版本与发布记录

@dgc-org/commitlint-config-conventional-changelog-for-jira 共发布 11 个版本,首次发布于 2021/06/09;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.2.6latest2021/11/174 年前
1.2.52021/06/135 年前
1.2.42021/06/135 年前
1.2.32021/06/135 年前
1.2.22021/06/125 年前
1.2.12021/06/115 年前

关于 @dgc-org/commitlint-config-conventional-changelog-for-jira 的常见问题

@dgc-org/commitlint-config-conventional-changelog-for-jira 是什么?

Shareable commitlint config enforcing the angular commit convention and Jira smart commits

如何安装 @dgc-org/commitlint-config-conventional-changelog-for-jira?

在项目目录运行 npm install @dgc-org/commitlint-config-conventional-changelog-for-jira,或使用 pnpm add / yarn add / bun add。

@dgc-org/commitlint-config-conventional-changelog-for-jira 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dgc-org__commitlint-config-conventional-changelog-for-jira 是否存在。

@dgc-org/commitlint-config-conventional-changelog-for-jira 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@dgc-org/commitlint-config-conventional-changelog-for-jira 可以商用吗?

@dgc-org/commitlint-config-conventional-changelog-for-jira 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@dgc-org/commitlint-config-conventional-changelog-for-jira 的下载量有多少?

根据 npm 官方下载统计,@dgc-org/commitlint-config-conventional-changelog-for-jira 在 2026/10/12 – 2026/11/10 这 30 天内被下载 2,788 次,日均约 93 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dgc-org/commitlint-config-conventional-changelog-for-jira 还在维护吗?

最新版本 1.2.6 发布于 2021/11/17(4 年前);至今共发布 11 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/06/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。