Git Commit Input
Makes Git Commit easier to use from PowerShell by providing parameters for the -Message, -Title, -Body, and -Trailers
EXAMPLE 1
git commit -Title "Fixing Something"
EXAMPLE 2
"}
The title of the commit. If -Message is also provided, this will become part of the -Body
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | named | false | Subject |
The commit message.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
The type of the commit. This uses the conventional commits format. https://www.conventionalcommits.org/en/v1.0.0/#specification
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
The scope of the commit. This uses the conventional commits format. https://www.conventionalcommits.org/en/v1.0.0/#specification
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
A description of the commit. This uses the conventional commits format. https://www.conventionalcommits.org/en/v1.0.0/#specification
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
The footer for the commit. This uses the conventional commits format. https://www.conventionalcommits.org/en/v1.0.0/#specification
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
The body of the commit.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
Any git trailers to add to the commit. git trailers are key-value pairs you can use to associate metadata with a commit. As this uses --trailer, this requires git version 2.33 or greater.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[IDictionary] |
false | named | false | Trailer CommitMetadata GitMetadata |
If set, will amend an existing commit.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
The commit date.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[DateTime] |
false | named | true (ByPropertyName) | Date Time DateTime Timestamp |
If provided, will mark this commit as a fix. This will add 'Fixes #...' to your commit message.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | Fixes Fixed |
If provided, will mark this commit as a close. This will add 'Closes #...' to your commit message.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | Closed Closes |
If provided, will mark this commit as a resolution. This will add 'Resolves #...' to your commit message.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | Resolves Resolved |
If provided, will mark this commit as referencing an issue. This will add 'Re #...' to your commit message.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | Re Regard Regards Regarding References |
If provided, will mark this commit as co-authored by one or more people.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | CoAuthor CoAuthors |
If provided, will mark this commit as on-behalf-of one or more people.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) | OnBehalf |
If set, will add [skip ci]
to the commit message.
This will usually prevent a CI/CD system from running a build.
This is supported by GitHub Workflows, Azure DevOps Pipelines, and GitLab (to name a few).
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Switch] |
false | named | false | CISkip NoCI SkipActions ActionSkip |
Extensions/Git.Commit.Input.UGit.Extension.ps1 [-Title <String>] [-Message <String>] [-Type <String>] [-Scope <String>] [-Description <String>] [-Footer <String>] [-Body <String>] [-Trailers <IDictionary>] [-Amend] [-CommitDate <DateTime>] [-Fix <String[]>] [-Close <String[]>] [-Resolve <String[]>] [-Reference <String[]>] [-CoAuthoredBy <String[]>] [-OnBehalfOf <String[]>] [-SkipCI] [<CommonParameters>]