chore: add warning to notify user that projectid is deprecated

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
djamaile
2022-06-09 22:48:11 +02:00
parent 6424c0ad6f
commit 5179b8d805
@@ -111,6 +111,12 @@ export const createPublishGitlabMergeRequestAction = (options: {
const { host, owner, repo } = parseRepoUrl(repoUrl, integrations);
const projectPath = `${owner}/${repo}`;
if (ctx.input.projectid) {
const deprecationWarning = `Property "projectid" is deprecated and no longer to needed to create a MR`;
ctx.logger.warn(deprecationWarning);
console.warn(deprecationWarning);
}
const integrationConfig = integrations.gitlab.byHost(host);
const destinationBranch = ctx.input.branchName;