Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak code reviewer #1454

Merged
merged 13 commits into from
Nov 25, 2024
9 changes: 7 additions & 2 deletions .github/workflows/codereviews.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: AI Code reviewer

on:
pull_request:
types: [opened, synchronize]

permissions:
issues: write

jobs:
code_review_job:
runs-on: ubuntu-latest
name: ChatGPT Code Review
steps:
- name: GenAI Code Review
uses: cirolini/genai-code-review@v2
uses: mcclowes/genai-code-review@v1.0.0
with:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.AI_REVIEWER }}
github_pr_id: ${{ github.event.number }}
#openai_model: "gpt-4o" # optional
openai_model: "gpt-3.5-turbo" # optional
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/linknator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Broken Links Check
on:
pull_request:
types: [opened, reopened, synchronize]
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
workflow_dispatch: # Allows manual triggering from the GitHub UI

jobs:
Expand All @@ -17,7 +15,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '20'

- name: Install linkinator
run: npm install -g linkinator
Expand Down
Loading