chore: give alternative to deprecated projectId

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
djamaile
2022-06-09 14:46:01 +02:00
parent d507278a0c
commit 890dfe614a
2 changed files with 3 additions and 7 deletions
-4
View File
@@ -710,8 +710,4 @@ export class TemplateActionRegistry {
// @public (undocumented)
export type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
// Warnings were encountered during analysis:
//
// src/scaffolder/actions/builtin/publish/gitlabMergeRequest.d.ts:16:9 - (tsdoc-missing-deprecation-message) The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
```
@@ -40,7 +40,7 @@ export const createPublishGitlabMergeRequestAction = (options: {
branchName: string;
targetPath: string;
token?: string;
/** @deprecated */
/** @deprecated Use projectPath instead */
projectid?: string;
}>({
id: 'publish:gitlab:merge-request',
@@ -54,7 +54,7 @@ export const createPublishGitlabMergeRequestAction = (options: {
title: 'Repository Location',
description: `Accepts the format 'gitlab.com/group_name/project_name' where 'project_name' is the repository name and 'group_name' is a group or username`,
},
/** @deprecated */
/** @deprecated Use projectPath instead */
projectid: {
type: 'string',
title: 'projectid',
@@ -185,7 +185,7 @@ export const createPublishGitlabMergeRequestAction = (options: {
).then((mergeRequest: { web_url: string }) => {
return mergeRequest.web_url;
});
/** @deprecated */
/** @deprecated Use projectPath instead */
ctx.output('projectid', projectPath);
ctx.output('projectPath', projectPath);
ctx.output('mergeRequestUrl', mergeRequestUrl);