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;
}, import("@backstage/types").JsonObject>;

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; }, import("@backstage/types").JsonObject>