script to request long codes and add them to a pool (#1547) #268
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
name: AI Code Review | |
# Disabled the AI code reviewer for now | |
# 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: "*lock*,.env" | |
include: "**/*.md,**/*.hcl,**/*.sh,**/*.tf,**/*.txt,**/*.yml" |