Skip to main content

createPublishGithubPullRequestAction()

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

Creates a Github Pull Request action.

Signature:

createPublishGithubPullRequestAction: (options: CreateGithubPullRequestActionOptions) => import("@backstage/plugin-scaffolder-node").TemplateAction<{
title: string;
branchName: string;
targetBranchName?: string | undefined;
description: string;
repoUrl: string;
draft?: boolean | undefined;
targetPath?: string | undefined;
sourcePath?: string | undefined;
token?: string | undefined;
reviewers?: string[] | undefined;
teamReviewers?: string[] | undefined;
commitMessage?: string | undefined;
update?: boolean | undefined;
forceFork?: boolean | undefined;
gitAuthorName?: string | undefined;
gitAuthorEmail?: string | undefined;
forceEmptyGitAuthor?: boolean | undefined;
}, import("@backstage/types").JsonObject>

Parameters

Parameter

Type

Description

options

CreateGithubPullRequestActionOptions

**Returns:**

import("@backstage/plugin-scaffolder-node").TemplateAction<{ title: string; branchName: string; targetBranchName?: string | undefined; description: string; repoUrl: string; draft?: boolean | undefined; targetPath?: string | undefined; sourcePath?: string | undefined; token?: string | undefined; reviewers?: string[] | undefined; teamReviewers?: string[] | undefined; commitMessage?: string | undefined; update?: boolean | undefined; forceFork?: boolean | undefined; gitAuthorName?: string | undefined; gitAuthorEmail?: string | undefined; forceEmptyGitAuthor?: boolean | undefined; }, import("@backstage/types").JsonObject>