Skip to content

Commit

Permalink
Added AI code review to the admin repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer committed Oct 17, 2024
1 parent b05b0ec commit 555b3d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ai-code-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AI Code Review

on:
push:
branches-ignore:
- main

jobs:
ai_code_review:
if: contains(github.event.head_commit.message, '[review]')
runs-on: ubuntu-latest

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

- name: AI Code Review
uses: cds-snc/cds-ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: ${{ vars.OPENAI_API_MODEL }}
OPENAI_API_VERSION: ${{ vars.OPENAI_API_VERSION }}
OPENAI_BASE_URL: ${{ vars.OPENAI_BASE_URL }}
exclude: "*lock*,.env,**/*.conf,**/*.ini,**/node_modules/**"
include: "**/*.cfg,**/*.html,**/*.js,**/*.json,**/*.md,**/*.py,**/*.sh,**/*.yml,**/*.yaml"

0 comments on commit 555b3d3

Please sign in to comment.