initRepoAndPush()
Home > @backstage/plugin-scaffolder-node
> initRepoAndPush
Signature:
function initRepoAndPush(input: {
dir: string;
remoteUrl: string;
auth: {
username: string;
password: string;
} | {
token: string;
};
logger: Logger;
defaultBranch?: string;
commitMessage?: string;
gitAuthorInfo?: {
name?: string;
email?: string;
};
}): Promise<{
commitHash: string;
}>;
Parameters
Parameter |
Type |
Description |
---|---|---|
input |
{ dir: string; remoteUrl: string; auth: { username: string; password: string; } | { token: string; }; logger: Logger; defaultBranch?: string; commitMessage?: string; gitAuthorInfo?: { name?: string; email?: string; }; } |
Promise<{ commitHash: string; }>