fix(gitlab): make description in publish:gitlab:merge-request optional again
Signed-off-by: ElaineDeMattosSilvaB <elaine.de-mattos-silva-bezerra@deutschebahn.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend-module-gitlab': patch
|
||||
---
|
||||
|
||||
The `description` property in `publish:gitlab:merge-request` has been made optional again to comply with the GitLab API.
|
||||
@@ -218,8 +218,8 @@ export const createPublishGitlabMergeRequestAction: (options: {
|
||||
{
|
||||
repoUrl: string;
|
||||
title: string;
|
||||
description: string;
|
||||
branchName: string;
|
||||
description?: string | undefined;
|
||||
targetBranchName?: string | undefined;
|
||||
sourcePath?: string | undefined;
|
||||
targetPath?: string | undefined;
|
||||
|
||||
@@ -157,7 +157,10 @@ Accepts the format \`gitlab.com?repo=project_name&owner=group_name\` where \
|
||||
\`project_name\` is the repository name and \`group_name\` is a group or username`),
|
||||
title: z => z.string().describe('The name for the merge request'),
|
||||
description: z =>
|
||||
z.string().describe('The description of the merge request'),
|
||||
z
|
||||
.string()
|
||||
.optional()
|
||||
.describe('The description of the merge request'),
|
||||
branchName: z =>
|
||||
z.string().describe('The source branch name of the merge request'),
|
||||
targetBranchName: z =>
|
||||
|
||||
Reference in New Issue
Block a user