docs: fix Conventional Commits PATCH rule #3628
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the "Conventional Commit" RegEx to be more in line with Convention Commits 1.0.0 and commitlint specifications.
This PR also adds notes for configuring GitVersion and semantic-release to generate the same version.
I'm considering adding a separate section for the
angularcommit format since that is what semantic-release defaults to. It's...nearly identical to Conventional Commits, but is more concrete in its specifications e.g. a reverted commit's header (type(scope): header message) is to be the revert commit's header message.Related Issue
resolves #3627
Motivation and Context
I use GitVersion for stamping .NET assemblies and NuGet packages with version information, but I use semantic-release for git tags, release commits, change logs, release notes, GitHub releases, and more.
Because they both have commit analysis and version generation capabilities, I've found that ensuring both generate the same version can be quite finicky.
How Has This Been Tested?
https://regexr.com/7h6lv
Checklist: