Ask CodeGPT for feedback #4
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: Ask CodeGPT for feedback | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
issue_comment: | |
types: [created] | |
jobs: | |
process-events: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Run CodeGPT | |
if: github.event_name == 'pull_request' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, 'CodeGPT') && !contains(github.event.comment.body,'The following is a message from CodeGPT:')) | |
uses: isat/[email protected] | |
with: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OPENAI_ASSISTANT_ID: 'asst_5GJDXEpXsiOKxJF2wObNvuWX' |