Skip to main content

commitAndPushRepo()

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

Signature:

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

Parameters

Parameter

Type

Description

input

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

**Returns:**

Promise<{ commitHash: string; }>