From 955c95838f634bdb38c359df868cd62a42312b55 Mon Sep 17 00:00:00 2001 From: angle <478647464@qq.com> Date: Fri, 17 Nov 2023 17:02:59 +0800 Subject: [PATCH] fix: not open add changeset url on specific environment (#137) Co-authored-by: JounQin --- .changeset/green-ducks-yawn.md | 5 +++++ src/comment.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/green-ducks-yawn.md diff --git a/.changeset/green-ducks-yawn.md b/.changeset/green-ducks-yawn.md new file mode 100644 index 00000000..f92622ec --- /dev/null +++ b/.changeset/green-ducks-yawn.md @@ -0,0 +1,5 @@ +--- +"changesets-gitlab": patch +--- + +fix: not open add changeset url on specific environment diff --git a/src/comment.ts b/src/comment.ts index 40230fc6..26742f63 100644 --- a/src/comment.ts +++ b/src/comment.ts @@ -199,7 +199,7 @@ export const comment = async () => { }), ] as const) - const addChangesetUrl = `${CI_MERGE_REQUEST_PROJECT_URL!}/new/${mrBranch}?file_name=.changeset/${humanId( + const addChangesetUrl = `${CI_MERGE_REQUEST_PROJECT_URL!}/-/new/${mrBranch}?file_name=.changeset/${humanId( { separator: '-', capitalize: false,