The following documents provide additional information on rules and standards applying to this project :
This module contains the following commands :
Verifies whether the commit message header conforms to the conventional commit format.
Test-ConventionalCommitHeader
[[-Message] <string>]
[-StrictTypes]
[-AdditionalModifiers]
[<CommonParameters>]
-Message
-
Required and Pipelinable. The versioning message to parse. See conventionalcommits.org for details on the message structure.
-StrictTypes
-
Switch. If true, the command will enforce the commit type to be in the following list:
build
,chore
,ci
,docs
,feat
,fix
,perf
,refactor
,revert
,style
,test
. -AdditionalModifiers
-
Switch. If true, the command will allow usage of
+
and-
in addition to!
. See below.
Returns a structured hastable of a conventional commits message header.
ConvertTo-ConventionalCommitHeader
[[-Message] <string>]
[-StrictTypes]
[-AdditionalModifiers]
[<CommonParameters>]
-Message
-
Required and Pipelinable. The versioning message to parse. See conventionalcommits.org for details on the message structure.
-StrictTypes
-
Switch. If true, the command will enforce the commit type to be in the following list:
build
,chore
,ci
,docs
,feat
,fix
,perf
,refactor
,revert
,style
,test
. -AdditionalModifiers
-
Switch. If true, the command will allow usage of
+
and-
in addition to!
. See below.
The command returns a HashTable with the following properties:
-
Type
-
Scope
-
Modifier
-
Description
This module introduces two additional modifiers (+
and -
) that are not described in Conventional Commits 1.0.0. These modifiers were introduced to explicitly separate the type of semantic version bump from the codebase change type. We use the following convention:
-
!
introduces breaking changes to the public API ⇒ major version bump -
+
introduces compatible changes to the public API ⇒ minor version bump -
-
or (empty) means no change to the public API ⇒ patch version bump
Important
|
The usage of The former indicates addition of new features to your codebase, the latter that you made some backward compatible changes to your public API. You can add features to your application without changing the public API, and you can add compatible changes to the API without adding a new feature to your application. Examples:
|