From d1f8267a7b16792882d61a9424eb1adac2cc36b6 Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Thu, 10 Oct 2024 20:57:01 +0300 Subject: [PATCH] fix --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ src/index.ts | 10 ++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8a2ac3f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Code Reviewer + +on: + issue_comment: + types: [created] + pull_request: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + review: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run Code Reviewer + uses: pivanov/code-review@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENAI_API_MODEL: "gpt-4o-mini" + exclude: "**/*.json, **/*.md, **/*.lock, **/dist/**, **/node_modules/**, **/.github/**, **/.vscode/**" diff --git a/src/index.ts b/src/index.ts index 7167798..192c1e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,16 @@ import { optimize } from 'svgo'; import type { Plugin, ViteDevServer } from 'vite'; +let name = "Alice"; +let age = 25; + +export const doSomething = () => { + return { + name, + age, + }; +}; + interface SvgSpritePluginOptions { iconDirs: string[]; symbolId: string;