A git command that stages and commits files in a working tree.
Type: object literal
Type: string
Default: undefined
A short-hand to perform the commit using a specific author & committer email and name.
Example:
/*
* The value must be in author format: "NAME <EMAIL>"
*/
{ gitActor: "bot <bot@email.com>" }
It is also possible to explicitly use the equivalent environment variables:
GIT_COMMITTER_NAME: bot
GIT_COMMITTER_EMAIL: bot@email.com
GIT_AUTHOR_NAME: bot
GIT_AUTHOR_EMAIL: bot@email.com
Type: string
Type: Set
鈩癸笍 聽 ExecaCommand options are also applicable.
const { GitCommitCommand } = require("@abstracter/atomic-release/commands");
const command = new GitCommitCommand({
actor: "bot <bot@mailbox.io>",
commitMessage: "ci: adding files generated during CI/CD",
workingDirectory: "/home/rick.sanchez/my-awesome-node-project",
filePaths: new Set(["path/relative/to/working/directory/file.txt"]),
});