mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 17:46:47 +00:00
Use GH config dir
This commit is contained in:
parent
ed407c8427
commit
eea1319b0a
6 changed files with 21 additions and 21 deletions
23
.github/config/rules.yaml
vendored
Normal file
23
.github/config/rules.yaml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Global rules that apply to all files/directories unless overridden
|
||||
global: []
|
||||
|
||||
# Rules for specific file extensions
|
||||
extensions:
|
||||
[".ts", ".js"]: ["Always use export default"]
|
||||
"tsx": ["Always use arrow functions"]
|
||||
|
||||
# Rules for specific directories
|
||||
directories:
|
||||
"src/**": []
|
||||
|
||||
# Paths to ignore completely
|
||||
ignore:
|
||||
- ".git"
|
||||
- "node_modules"
|
||||
- "dist"
|
||||
- "build"
|
||||
- "_build"
|
||||
- "csv"
|
||||
- "json"
|
||||
|
||||
|
18
.github/workflows/code_review.yml
vendored
18
.github/workflows/code_review.yml
vendored
|
@ -1,4 +1,5 @@
|
|||
name: Code Review with OpenAI
|
||||
name: AI Code Reviewer
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
|
@ -6,15 +7,16 @@ on:
|
|||
- synchronize
|
||||
permissions: write-all
|
||||
jobs:
|
||||
code_review:
|
||||
review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Code Review
|
||||
uses: freeedcom/ai-codereviewer@main
|
||||
|
||||
- name: AI Code Reviewer
|
||||
uses: dankentfield/ai-code-reviewer@main
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # The GITHUB_TOKEN is there by default so you just need to keep it like it is and not necessarily need to add it as secret as it will throw an error. [More Details](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret)
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
OPENAI_API_MODEL: "gpt-4-1106-preview"
|
||||
exclude: "yarn.lock,dist/**"
|
||||
OPENAI_API_MODEL: "gpt-4o" # Optional: defaults to "gpt-4"
|
||||
config-file: .github/config/rules.yaml
|
Loading…
Add table
Add a link
Reference in a new issue