You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.npmjs.com/package/@semantic-release/commit-analyzer)
Release rules are used when deciding if the commits since the last release warrant a new release. If you define custom release rules the [default rules](lib/default-release-rules.js) will be used if nothing matched. Those rules will be matched against the commit objects resulting of [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser) parsing.
76
+
Release rules are used when deciding if the commits since the last release warrant a new release. If you define custom release rules the [default rules](lib/default-release-rules.js) will be used if nothing matched. Those rules will be matched against the commit objects resulting of [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser) parsing. Each rule property can be defined as a [glob](https://github.com/micromatch/micromatch#matching-features).
76
77
77
78
##### Rules definition
78
79
@@ -84,7 +85,7 @@ This is an `Array` of rule objects. A rule object has a `release` property and 1
@@ -103,7 +104,7 @@ See [release types](lib/default-release-types.js) for the release types hierarch
103
104
With the previous example:
104
105
- Commits with `type` 'docs' and `scope` 'README' will be associated with a `patch` release.
105
106
- Commits with `type` 'refactor' and `scope` starting with 'core-' (i.e. 'core-ui', 'core-rules', ...) will be associated with a `minor` release.
106
-
- Other commits with `type` 'refactor' (without `scope` or with a `scope` not matching the regexp `/core-.*/`) will be associated with a `patch` release.
107
+
- Other commits with `type` 'refactor' (without `scope` or with a `scope` not matching the glob `core-*`) will be associated with a `patch` release.
107
108
- Commits with scope `no-release` will not be associated with a release type.
108
109
109
110
##### Default rules matching
@@ -147,7 +148,7 @@ For example with `eslint` preset:
0 commit comments