Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Ivanov committed Oct 10, 2024
1 parent 854846f commit d1f8267
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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/**"
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1f8267

Please sign in to comment.