-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cds-ai-codereviewer github action to k8s repo (#2922)
* Typos * Added CDS AI code review github action
- Loading branch information
1 parent
830ba01
commit b647291
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |