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

      Parameters

      Returns TemplateAction<
          {
              branches?: {
                  create?: boolean;
                  name: string;
                  protect?: boolean;
                  ref?: string;
              }[];
              defaultBranch?: string;
              gitAuthorEmail?: string;
              gitAuthorName?: string;
              gitCommitMessage?: string;
              projectVariables?: {
                  description?: string;
                  environment_scope?: string;
                  key: string;
                  masked?: boolean;
                  protected?: boolean;
                  raw?: boolean;
                  value: string;
                  variable_type?: "env_var"
                  | "file";
              }[];
              repoUrl: string;
              repoVisibility?: "private"
              | "public"
              | "internal";
              settings?: {
                  allow_merge_on_skipped_pipeline?: boolean;
                  auto_devops_enabled?: boolean;
                  ci_config_path?: string;
                  description?: string;
                  merge_method?: "merge" | "rebase_merge" | "ff";
                  only_allow_merge_if_all_discussions_are_resolved?: boolean;
                  only_allow_merge_if_pipeline_succeeds?: boolean;
                  path?: string;
                  squash_option?: "default_off" | "default_on" | "never" | "always";
                  topics?: string[];
                  visibility?: "private" | "public" | "internal";
              };
              setUserAsOwner?: boolean;
              signCommit?: boolean;
              skipExisting?: boolean;
              sourcePath?: string
              | boolean;
              token?: string;
              topics?: string[];
          },
          {
              commitHash: string;
              created: boolean;
              projectId: number;
              remoteUrl: string;
              repoContentsUrl: string;
          },
          "v2",
      >