Skip to main content

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;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
repoUrl: string;
name: string;
deploymentBranchPolicy?: {
protected_branches: boolean;
custom_branch_policies: boolean;
} | undefined;
customBranchPolicyNames?: string[] | undefined;
environmentVariables?: {
[key: string]: string;
} | undefined;
secrets?: {
[key: string]: string;
} | undefined;
token?: string | undefined;
}, import("@backstage/types").JsonObject>;

Parameters

ParameterTypeDescription
options{ integrations: ScmIntegrationRegistry; }

Returns:

import("@backstage/plugin-scaffolder-node").TemplateAction<{ repoUrl: string; name: string; deploymentBranchPolicy?: { protected_branches: boolean; custom_branch_policies: boolean; } | undefined; customBranchPolicyNames?: string[] | undefined; environmentVariables?: { [key: string]: string; } | undefined; secrets?: { [key: string]: string; } | undefined; token?: string | undefined; }, import("@backstage/types").JsonObject>