Skip to main content
Version: Next

createPublishGerritAction()

Home > @backstage/plugin-scaffolder-backend-module-gerrit > createPublishGerritAction

Creates a new action that initializes a git repository of the content in the workspace and publishes it to a Gerrit instance.

Signature:

function createPublishGerritAction(options: {
integrations: ScmIntegrationRegistry;
config: Config;
}): import("@backstage/plugin-scaffolder-node").TemplateAction<{
repoUrl: string;
description: string;
defaultBranch?: string | undefined;
gitCommitMessage?: string | undefined;
gitAuthorName?: string | undefined;
gitAuthorEmail?: string | undefined;
sourcePath?: string | undefined;
signCommit?: boolean | undefined;
}, {
remoteUrl?: string | undefined;
repoContentsUrl?: string | undefined;
commitHash?: string | undefined;
}, "v2">;

Parameters

Parameter

Type

Description

options

{ integrations: ScmIntegrationRegistry; config: Config; }

**Returns:**

import("@backstage/plugin-scaffolder-node").TemplateAction<{ repoUrl: string; description: string; defaultBranch?: string | undefined; gitCommitMessage?: string | undefined; gitAuthorName?: string | undefined; gitAuthorEmail?: string | undefined; sourcePath?: string | undefined; signCommit?: boolean | undefined; }, { remoteUrl?: string | undefined; repoContentsUrl?: string | undefined; commitHash?: string | undefined; }, "v2">