Skip to content

Commit

Permalink
Merge pull request #1454 from codatio/fix/code-reviewer
Browse files Browse the repository at this point in the history
Tweak code reviewer
  • Loading branch information
mcclowes authored Nov 25, 2024
2 parents 787b611 + 6908c88 commit 5c4bd4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
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

0 comments on commit 5c4bd4b

Please sign in to comment.