Skip to content

Feature/draftprchatgpt #53

Feature/draftprchatgpt

Feature/draftprchatgpt #53

Workflow file for this run

name: ChatGPT
on:
pull_request:
types:
- opened
- synchronize
workflow_dispatch:
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Check if Draft
id: check
run: echo "::set-output name=is_draft::${{ github.event.pull_request.draft }}"
- name: Run if Draft
if: steps.check.outputs.is_draft == 'true'
uses: adshao/[email protected]
with:
OPENAI_TOKEN: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FULL_REVIEW_COMMENT: 'chatgpt'
REVIEW_COMMENT_PREFIX: 'chatgpt:'