From 8f9a47a202b067248f7f6079fc75544b44f2e6eb Mon Sep 17 00:00:00 2001 From: soags <17847282+soags@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:44:08 +0900 Subject: [PATCH 1/2] =?UTF-8?q?GitHubAction=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8590e64..c928d78 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import { getUnexpectedErrorMessage, } from './utils' -const validateSlugRemote = async (slug) => { +const validateSlugRemote = async (slug: string) => { const res = await fetch(`https://zenn.dev/api/articles/${slug}`) if (res.status === 200) { console.error(getSlugRemoteDuplicateMessage(slug)) @@ -28,7 +28,7 @@ const spawnNewArticle = (args: NewArticleArgs) => { published, publicationName, machineReadable, - help, + help,, } = args const child = spawn('npx', [ From b472a09ca12ca44e9a8a2ae57bc97fda954de495 Mon Sep 17 00:00:00 2001 From: soags <17847282+soags@users.noreply.github.com> Date: Thu, 25 Jul 2024 00:01:42 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Revert=20"GitHubAction=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8f9a47a202b067248f7f6079fc75544b44f2e6eb. --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index c928d78..8590e64 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import { getUnexpectedErrorMessage, } from './utils' -const validateSlugRemote = async (slug: string) => { +const validateSlugRemote = async (slug) => { const res = await fetch(`https://zenn.dev/api/articles/${slug}`) if (res.status === 200) { console.error(getSlugRemoteDuplicateMessage(slug)) @@ -28,7 +28,7 @@ const spawnNewArticle = (args: NewArticleArgs) => { published, publicationName, machineReadable, - help,, + help, } = args const child = spawn('npx', [