anc95 / ChatGPT-CodeReview

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

Problem: Didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. #104

Open thigosaquette opened 1 year ago

thigosaquette commented 1 year ago

The app response:

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information.

My .github/workflow/cr.yml config: Screenshot 2023-06-06 111344

And my github variables: Screenshot 2023-06-06 111420

anc95 commented 1 year ago

@thigosaquette You are using github action, and add the OPENAI_API_KEY in Secrets is needed.

thigosaquette commented 1 year ago

@anc95, when i insert OPENAI_API_KEY on Action Secrets too, the code reviewer bot don't review anymore. I tried insert in the Codespace and Dependabot Secrets too.

anc95 commented 1 year ago

@thigosaquette Do you find any logs in the action execution, there might skip the review in some cases, and it would print in the console.

loloxwg commented 1 year ago

the code reviewer bot don't review anymore too

bjwswang commented 1 year ago

the code reviewer bot don't review anymore too

+1 code review no more working

anc95 commented 1 year ago

@loloxwg @bjwswang Please check if you have an available API key set. I just checked the server log. The two top errors are 1. 429, you exceed your API key quota. 2. 401, Invalid OpenAI API Key

FFFiend commented 11 months ago

Anyone still facing this problem? I tried and am running into the same issue as OP.

fynnfluegge commented 11 months ago

Use pull_request_target instead of pull_request, since it has no access to secrets

on:
  pull_request_target:
    types: [opened, reopened, synchronize]
feilen commented 9 months ago

Has anyone been having luck with this? It's been non-functional for me so far. pull_request_target didn't help.