From f98e7943d372dd9253577bb747d58324f098d4e2 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 25 Nov 2024 14:41:28 +0100 Subject: [PATCH 1/5] set prettier version --- .github/workflows/check-web-code-prettier.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/check-web-code-prettier.yml b/.github/workflows/check-web-code-prettier.yml index e2b0ca7a58..184126a23a 100644 --- a/.github/workflows/check-web-code-prettier.yml +++ b/.github/workflows/check-web-code-prettier.yml @@ -17,6 +17,10 @@ jobs: with: node-version: 20 + - name: Install Prettier + run: npm install prettier@3.2.5 --no-save + working-directory: agenta-web + - name: Run Prettier run: npx prettier --check . working-directory: agenta-web From 28bf6c5f2ea64be82666a8720ae9528e26c1a21d Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 25 Nov 2024 15:02:53 +0100 Subject: [PATCH 2/5] trigger prettier check to be sure --- agenta-web/src/hooks/useAppId.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-web/src/hooks/useAppId.ts b/agenta-web/src/hooks/useAppId.ts index 19718d52bf..fdcf70df6a 100644 --- a/agenta-web/src/hooks/useAppId.ts +++ b/agenta-web/src/hooks/useAppId.ts @@ -1,6 +1,6 @@ -import {useRouter} from "next/router" +import { useRouter } from "next/router" export const useAppId = (): string => { const router = useRouter() - return (router.query.app_id ?? "") as string + return (router.query.app_id ?? '') as string } From 838794b0c8b6cb987679c6c273f22b70e2892090 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 25 Nov 2024 15:05:28 +0100 Subject: [PATCH 3/5] add prettier -v --- .github/workflows/check-web-code-prettier.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-web-code-prettier.yml b/.github/workflows/check-web-code-prettier.yml index 184126a23a..d45ff25eb7 100644 --- a/.github/workflows/check-web-code-prettier.yml +++ b/.github/workflows/check-web-code-prettier.yml @@ -22,5 +22,7 @@ jobs: working-directory: agenta-web - name: Run Prettier - run: npx prettier --check . - working-directory: agenta-web + run: | + npx prettier -v + npx prettier --check . + working-directory: core/agenta-web From 844dc20b66f208b78227c677cb96bcdad0f024fb Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 25 Nov 2024 15:07:29 +0100 Subject: [PATCH 4/5] fix path --- .github/workflows/check-web-code-prettier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-web-code-prettier.yml b/.github/workflows/check-web-code-prettier.yml index d45ff25eb7..1f363c0c03 100644 --- a/.github/workflows/check-web-code-prettier.yml +++ b/.github/workflows/check-web-code-prettier.yml @@ -25,4 +25,4 @@ jobs: run: | npx prettier -v npx prettier --check . - working-directory: core/agenta-web + working-directory: agenta-web From 6c43691dca6a6838cb9e229090e50051387e76dc Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 25 Nov 2024 15:09:57 +0100 Subject: [PATCH 5/5] put back original code format --- agenta-web/src/hooks/useAppId.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agenta-web/src/hooks/useAppId.ts b/agenta-web/src/hooks/useAppId.ts index fdcf70df6a..19718d52bf 100644 --- a/agenta-web/src/hooks/useAppId.ts +++ b/agenta-web/src/hooks/useAppId.ts @@ -1,6 +1,6 @@ -import { useRouter } from "next/router" +import {useRouter} from "next/router" export const useAppId = (): string => { const router = useRouter() - return (router.query.app_id ?? '') as string + return (router.query.app_id ?? "") as string }