跳到主要内容

semver

([1-9]\d*|0).([1-9]\d*|0).([1-9]\d*|0)
major minor patch

pre-release:
-
0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*
.
0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*

build:
+
[a-zA-Z0-9-]*
.
[a-zA-Z0-9-]*
rangetypecond
*X-Range>=0.0.0
1.2.3 - 2.3.4Hyphen Range>=1.2.3 <=2.3.4
1.2.3 - 2Hyphen Range>=1.2.3 <3.0.0
1.*X-Range>=1.0.0 <2.0.0
1.2.*X-Ranges>=1.2.0 <1.3.0
~1.2.3Tilde Ranges>=1.2.3 <1.3.0
^1.2.3Caret Ranges>=1.2.3 <2.0.0

Conventional Commits

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]
  • type
    • fix, feat
    • build, chore, ci, docs, style, refactor, perf, test
    • revert + Refs commit-id
  • BREAKING CHANGE footer 描述变化 或 <type>[scope]!
fix: abc

zyx

Reviewed-by: Z
Refs: #123