Backstage
    Preparing search index...
    • Creates a new action that initializes a git repository of the content in the workspace and publishes it to GitHub.

      Parameters

      Returns TemplateAction<
          {
              access?: string;
              allowAutoMerge?: boolean;
              allowMergeCommit?: boolean;
              allowRebaseMerge?: boolean;
              allowSquashMerge?: boolean;
              allowUpdateBranch?: boolean;
              bypassPullRequestAllowances?: {
                  apps?: string[];
                  teams?: string[];
                  users?: string[];
              };
              collaborators?: (
                  { access: string; user: string }
                  | { access: string; team: string }
              )[];
              customProperties?: Record<string, string | string[]>;
              defaultBranch?: string;
              deleteBranchOnMerge?: boolean;
              description?: string;
              dismissStaleReviews?: boolean;
              gitAuthorEmail?: string;
              gitAuthorName?: string;
              gitCommitMessage?: string;
              hasIssues?: boolean;
              hasProjects?: boolean;
              hasWiki?: boolean;
              homepage?: string;
              oidcCustomization?: { includeClaimKeys?: string[]; useDefault: boolean };
              protectDefaultBranch?: boolean;
              protectEnforceAdmins?: boolean;
              repoUrl: string;
              repoVariables?: Record<string, string>;
              repoVisibility?: "private" | "public" | "internal";
              requireBranchesToBeUpToDate?: boolean;
              requireCodeOwnerReviews?: boolean;
              requiredApprovingReviewCount?: number;
              requiredCommitSigning?: boolean;
              requiredConversationResolution?: boolean;
              requiredLinearHistory?: boolean;
              requiredStatusCheckContexts?: string[];
              requireLastPushApproval?: boolean;
              restrictions?: { apps?: string[]; teams: string[]; users: string[] };
              secrets?: Record<string, string>;
              sourcePath?: string;
              squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
              squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
              subscribe?: boolean;
              token?: string;
              topics?: string[];
          },
          { commitHash: string; remoteUrl: string; repoContentsUrl: string },
          "v2",
      >