Skip to content

Commit

Permalink
chore: add AI Code Review Action
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet committed Oct 20, 2024
1 parent 0ee0a0b commit 0e86450
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ enabled = true

[analyzers.meta]
import_root = "github.com/arttet/Interview-Preparation-Kit-in-Go"

[[analyzers]]
name = "test-coverage"
enabled = true
24 changes: 24 additions & 0 deletions .github/workflows/ai-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: AI Code Review

on:
pull_request:

jobs:
code-review:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: gvasilei/[email protected]

Check warning on line 18 in .github/workflows/ai-code-review.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/ai-code-review.yml#L18

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
env:
NODE_OPTIONS: '--experimental-fetch'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
model_name: gpt-3.5-turbo
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
DOC_DIR: docs

steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Pages
Expand Down

0 comments on commit 0e86450

Please sign in to comment.