Skip to main content
Version: Next

createGithubEnvironmentAction()

Home > @backstage/plugin-scaffolder-backend-module-github > createGithubEnvironmentAction

Creates an github:environment:create Scaffolder action that creates a Github Environment.

Signature:

function createGithubEnvironmentAction(options: {
integrations: ScmIntegrationRegistry;
catalog: CatalogService;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
repoUrl: string;
name: string;
deploymentBranchPolicy?: {
protected_branches: boolean;
custom_branch_policies: boolean;
} | undefined;
customBranchPolicyNames?: string[] | undefined;
customTagPolicyNames?: string[] | undefined;
environmentVariables?: Record<string, string> | undefined;
secrets?: Record<string, string> | undefined;
token?: string | undefined;
waitTimer?: number | undefined;
preventSelfReview?: boolean | undefined;
reviewers?: string[] | undefined;
}, {
[x: string]: any;
}, "v2">;

Parameters

Parameter

Type

Description

options

{ integrations: ScmIntegrationRegistry; catalog: CatalogService; }

**Returns:**

import("@backstage/plugin-scaffolder-node").TemplateAction<{ repoUrl: string; name: string; deploymentBranchPolicy?: { protected_branches: boolean; custom_branch_policies: boolean; } | undefined; customBranchPolicyNames?: string[] | undefined; customTagPolicyNames?: string[] | undefined; environmentVariables?: Record<string, string> | undefined; secrets?: Record<string, string> | undefined; token?: string | undefined; waitTimer?: number | undefined; preventSelfReview?: boolean | undefined; reviewers?: string[] | undefined; }, { [x: string]: any; }, "v2">