anc95 / ChatGPT-CodeReview

🐥 A code review bot powered by ChatGPT
https://github.com/apps/cr-gpt
ISC License
3.78k stars 361 forks source link

bug: do not work on new commit to pull_request #32

Closed Certseeds closed 1 year ago

Certseeds commented 1 year ago

refer to https://github.com/Certseeds/openpgpage/pull/4 use actions to trigger code-review

name: Code Review

permissions:
  contents: read
  pull-requests: write

on:
  pull_request:
    types: [opened, reopened, synchronize]

jobs:
  test:
    if: github.repository == 'Certseeds/openpgpage'
    runs-on: ubuntu-latest
    steps:
      - uses: anc95/ChatGPT-CodeReview@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          OPENAI_API_KEY: ${{ secrets.CHATGPT_SESSION_TOKEN }}

1st commit trigger a review, get a meaningful response. 2nd force-push trigger a review, find a meaingful response too. but the 3rd and 4th push can trigger actions but do not find response, is that corect? ps: the 3rd action https://github.com/Certseeds/openpgpage/actions/runs/4315833869 the 4th action https://github.com/Certseeds/openpgpage/actions/runs/4315849686

Certseeds commented 1 year ago

ps: maybe update action's json file with newest code is helpful

anc95 commented 1 year ago

@Certseeds Have you tried change the action to anc95/ChatGPT-CodeReview@main (the code on main branch) to see if it would work?

Certseeds commented 1 year ago

@Certseeds Have you tried change the action to anc95/ChatGPT-CodeReview@main (the code on main branch) to see if it would work?

yes, it works.

the bug come from commit bb605aa8e79b09f96e7b0db3e2b59838eab5280d