how to implement OTOCO #293
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: Code Review | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
code-review: | |
if: | | |
github.event_name == 'pull_request' || | |
(github.event.comment.user.login == 'adshao' && | |
startsWith(github.event.comment.body, 'chatgpt')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: OpenAI ChatGPT Code Review | |
uses: adshao/[email protected] | |
with: | |
PROGRAMMING_LANGUAGE: 'Go' | |
REVIEW_COMMENT_PREFIX: 'chatgpt:' | |
FULL_REVIEW_COMMENT: 'chatgpt' | |
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |