anc95 / ChatGPT-CodeReview

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

Ask for asnwer, pls help me #48

Closed maronghe closed 1 year ago

maronghe commented 1 year ago

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

Could you let me know, why my github demo project still get the message?

anc95 commented 1 year ago

you are using GitHub action or GitHub app?

maronghe commented 1 year ago

Is GitHub app meaning that add

- name: ChatGPT CodeReviewer
  uses: anc95/ChatGPT-CodeReview@v1.0.3

into a .yml file ?

anc95 commented 1 year ago

No. This is GitHub action. You should set the OPENAI_API_KEY in secrets, and then pass it as an env var in the yml file

kocat53 commented 1 year ago

@maronghe

Based on my understanding, it seems like you can just follow the instructions in the image below and ignore the parts listed in the install.

image

maronghe commented 1 year ago

ok let me try

godkor200 commented 1 year ago

I have the same problem

yimelia commented 1 year ago

image I had the same issue before, but I have resolved it now. I set the OPENAI_API_KEY in Secrets instead of Variables @godkor200

godkor200 commented 1 year ago

스크린샷 2023-03-23 오후 12 17 36 I've already set it up, but the same problem is happening. @yimelia

yimelia commented 1 year ago

스크린샷 2023-03-23 오후 12 17 36 I've already set it up, but the same problem is happening. @yimelia

goto Actions, click Code Review, and check if it is empty here?

image

godkor200 commented 1 year ago

I solved it. It wasn't a secret, but I added a key to the variables @yimelia

anc95 commented 1 year ago

If you are using github action, set the key in secret. And if you are using the app, set the key in variable (cause we can't access secret in github app)

maronghe commented 1 year ago

Yes. thank you all. I have solved this problem. This is a great CR tool.