chatgpt-action.yml 511 B

123456789101112131415161718
  1. name: ChatGPT CodeReview
  2. on: [pull_request]
  3. jobs:
  4. chatgpt_comment:
  5. runs-on: ubuntu-latest
  6. name: Let chatgpt comment on your PR.
  7. steps:
  8. - name: ChatGPT comment
  9. uses: kxxt/chatgpt-action@v0.2
  10. id: chatgpt
  11. with:
  12. number: ${{ github.event.pull_request.number }}
  13. sessionToken: ${{ secrets.CHATGPT_SESSION_TOKEN }}
  14. split: 'yolo' # Use true to enable the unstable split feature.
  15. env:
  16. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}