Skip to content

Commit

Permalink
Add cds-ai-codereviewer github action to k8s repo (#2922)
Browse files Browse the repository at this point in the history
* Typos

* Added CDS AI code review github action
  • Loading branch information
jimleroyer authored Sep 9, 2024
1 parent 830ba01 commit b647291
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/diff-env-vars/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ inputs:
description: The name of the first environment
required: true
env1-vars:
description: The first environment's varaible names
description: The first environment's variable names
required: true
env2-name:
description: The name of the second environment
required: true
env2-vars:
description: The second envrionment's variable names
description: The second environment's variable names
required: true

runs:
Expand Down
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:
pull_request:
types:
- opened
- synchronize

jobs:
ai_code_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: "**/.env,**/*.aws,**/*.zip,*lock*"
include: "**/*.js,**/*.md,**/*.ps1,**/*.sh,**/*.txt,**/*.yml"

0 comments on commit b647291

Please sign in to comment.