From f7213178b0a516a0bc953553c2b14e1b7d343285 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Wed, 6 Nov 2024 17:08:06 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20URL=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=883?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/collect.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/collect.ts b/scripts/collect.ts index 4e5beaf..fcdc980 100644 --- a/scripts/collect.ts +++ b/scripts/collect.ts @@ -282,22 +282,22 @@ for (const { dirname, source } of successfulDownloads) { }, ); const deployInfoMessage = [ - commentMarker, ":rocket: プレビュー用ページを作成しました :rocket:", "", - `- [:pencil: エディタ](${pagesUrl}/vv-preview-demo-bot/${dirname}/editor)`, - `- [:book: Storybook](${pagesUrl}/vv-preview-demo-bot/${dirname}/storybook)`, + `- [:pencil: エディタ](${pagesUrl}/preview/${dirname}/editor)`, + `- [:book: Storybook](${pagesUrl}/preview/${dirname}/storybook)`, "", `更新時点でのコミットハッシュ:[\`${source.pullRequest.head.sha.slice(0, 7)}\`](https://github.com/${ source.pullRequest.head.repo.full_name }/commit/${source.pullRequest.head.sha})`, + commentMarker, ].join("\n"); const maybePreviousDeployInfo = comments.find( (comment) => comment.user && appInfo.data && comment.user.login === `${appInfo.data.slug}[bot]` && - comment.body?.startsWith(commentMarker), + comment.body?.endsWith(commentMarker), ); if (!maybePreviousDeployInfo) { log.info("Adding deploy info...");