Skip to main content

commitAndPushBranch()

Home > @backstage/plugin-scaffolder-node > commitAndPushBranch

Signature:

function commitAndPushBranch(options: {
dir: string;
auth: {
username: string;
password: string;
} | {
token: string;
};
logger?: Logger | undefined;
commitMessage: string;
gitAuthorInfo?: {
name?: string;
email?: string;
};
branch?: string;
remoteRef?: string;
remote?: string;
}): Promise<{
commitHash: string;
}>;

Parameters

Parameter

Type

Description

options

{ dir: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; commitMessage: string; gitAuthorInfo?: { name?: string; email?: string; }; branch?: string; remoteRef?: string; remote?: string; }

**Returns:**

Promise<{ commitHash: string; }>