A Git command that stages and commits files.
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 <[email protected]>" }
It is also possible to explicitly use the equivalent environment variables:
GIT_COMMITTER_NAME: bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: bot
GIT_AUTHOR_EMAIL: [email protected]
Type: string
Type: Set
ℹ️ ExecCommand options are also applicable.
const { Commands } = require("@abstracter/atomic-release");
const command = new Commands.GitCommitCommand({
actor: "bot <[email protected]>",
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"]),
});