ChatGPT-CodeReview icon indicating copy to clipboard operation
ChatGPT-CodeReview copied to clipboard

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

Open thigosaquette opened this issue 2 years ago • 9 comments

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

thigosaquette avatar Jun 06 '23 14:06 thigosaquette

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

anc95 avatar Jun 06 '23 14:06 anc95

@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.

thigosaquette avatar Jun 06 '23 15:06 thigosaquette

@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.

anc95 avatar Jun 07 '23 15:06 anc95

the code reviewer bot don't review anymore too

loloxwg avatar Jun 23 '23 13:06 loloxwg

the code reviewer bot don't review anymore too

+1 code review no more working

bjwswang avatar Jun 26 '23 07:06 bjwswang

@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

anc95 avatar Jun 27 '23 03:06 anc95

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

FFFiend avatar Jul 11 '23 07:07 FFFiend

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

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

fynnfluegge avatar Jul 12 '23 10:07 fynnfluegge

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

feilen avatar Sep 29 '23 06:09 feilen