From 604c9ddeefd455f4bf4b170d06c5bfdec984819d Mon Sep 17 00:00:00 2001 From: Elaine Mattos Date: Tue, 19 Dec 2023 08:00:11 +0100 Subject: [PATCH] fix: add barrel file and fix typos Signed-off-by: Elaine Mattos --- .changeset/flat-terms-provide.md | 5 +++++ .../createGitlabIssueAction.examples.ts | 3 ++- .../src/actions/index.ts | 20 +++++++++++++++++++ .../src/index.ts | 6 +----- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .changeset/flat-terms-provide.md create mode 100644 plugins/scaffolder-backend-module-gitlab/src/actions/index.ts diff --git a/.changeset/flat-terms-provide.md b/.changeset/flat-terms-provide.md new file mode 100644 index 0000000000..32578c74e3 --- /dev/null +++ b/.changeset/flat-terms-provide.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder-backend-module-gitlab': minor +--- + +Add Scaffolder custom action that creates GitLab issues: gitlab:issues:create diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/createGitlabIssueAction.examples.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/createGitlabIssueAction.examples.ts index 1be944a7c8..0044d02df7 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/createGitlabIssueAction.examples.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/createGitlabIssueAction.examples.ts @@ -48,7 +48,8 @@ export const examples: TemplateExample[] = [ ...commonGitlabConfigExample, projectId: 12, title: 'Test Issue', - assignees: -18, + assignees: ` + - 18 `, description: 'This is the description of the issue', createdAt: '2022-09-27 18:00:00.000', dueDate: '2022-09-28 12:00:00.000', diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/index.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/index.ts new file mode 100644 index 0000000000..f634c7a03b --- /dev/null +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/index.ts @@ -0,0 +1,20 @@ +/* + * Copyright 2023 The Backstage Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export * from './createGitlabGroupEnsureExistsAction'; +export * from './createGitlabProjectDeployTokenAction'; +export * from './createGitlabProjectAccessTokenAction'; +export * from './createGitlabProjectVariableAction'; +export * from './createGitlabIssueAction'; diff --git a/plugins/scaffolder-backend-module-gitlab/src/index.ts b/plugins/scaffolder-backend-module-gitlab/src/index.ts index eadb1ba78d..844f753344 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/index.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/index.ts @@ -19,8 +19,4 @@ * * @packageDocumentation */ -export * from './actions/createGitlabGroupEnsureExistsAction'; -export * from './actions/createGitlabProjectDeployTokenAction'; -export * from './actions/createGitlabProjectAccessTokenAction'; -export * from './actions/createGitlabProjectVariableAction'; -export * from './actions/createGitlabIssueAction'; +export * from './actions';