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 3d50ab32c4d83733b42da587d228b90d6e15b375 Mon Sep 17 00:00:00 2001 From: soags <17847282+soags@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:58:35 +0900 Subject: [PATCH 2/2] Format GitHub Action --- .github/workflows/format.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..472764b --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,14 @@ +name: Format +on: + pull_request: + push: + branches: + - main +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: creyD/prettier_action@v4.3 + with: + prettier_options: --write .