createGithubRepoPushAction()
Home > @backstage/plugin-scaffolder-backend-module-github
> createGithubRepoPushAction
Creates a new action that initializes a git repository of the content in the workspace and publishes it to GitHub.
Signature:
function createGithubRepoPushAction(options: {
integrations: ScmIntegrationRegistry;
config: Config;
githubCredentialsProvider?: GithubCredentialsProvider;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
repoUrl: string;
requireCodeOwnerReviews?: boolean | undefined;
dismissStaleReviews?: boolean | undefined;
requiredStatusCheckContexts?: string[] | undefined;
bypassPullRequestAllowances?: {
apps?: string[] | undefined;
teams?: string[] | undefined;
users?: string[] | undefined;
} | undefined;
requiredApprovingReviewCount?: number | undefined;
restrictions?: {
teams: string[];
users: string[];
apps?: string[] | undefined;
} | undefined;
requireBranchesToBeUpToDate?: boolean | undefined;
requiredConversationResolution?: boolean | undefined;
requireLastPushApproval?: boolean | undefined;
defaultBranch?: string | undefined;
protectDefaultBranch?: boolean | undefined;
protectEnforceAdmins?: boolean | undefined;
gitCommitMessage?: string | undefined;
gitAuthorName?: string | undefined;
gitAuthorEmail?: string | undefined;
sourcePath?: string | undefined;
token?: string | undefined;
requiredCommitSigning?: boolean | undefined;
requiredLinearHistory?: boolean | undefined;
}, {
remoteUrl: string;
repoContentsUrl: string;
commitHash: string;
}, "v2">;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ integrations: ScmIntegrationRegistry; config: Config; githubCredentialsProvider?: GithubCredentialsProvider; } |
import("@backstage/plugin-scaffolder-node").TemplateAction<{ repoUrl: string; requireCodeOwnerReviews?: boolean | undefined; dismissStaleReviews?: boolean | undefined; requiredStatusCheckContexts?: string[] | undefined; bypassPullRequestAllowances?: { apps?: string[] | undefined; teams?: string[] | undefined; users?: string[] | undefined; } | undefined; requiredApprovingReviewCount?: number | undefined; restrictions?: { teams: string[]; users: string[]; apps?: string[] | undefined; } | undefined; requireBranchesToBeUpToDate?: boolean | undefined; requiredConversationResolution?: boolean | undefined; requireLastPushApproval?: boolean | undefined; defaultBranch?: string | undefined; protectDefaultBranch?: boolean | undefined; protectEnforceAdmins?: boolean | undefined; gitCommitMessage?: string | undefined; gitAuthorName?: string | undefined; gitAuthorEmail?: string | undefined; sourcePath?: string | undefined; token?: string | undefined; requiredCommitSigning?: boolean | undefined; requiredLinearHistory?: boolean | undefined; }, { remoteUrl: string; repoContentsUrl: string; commitHash: string; }, "v2">