A ChatGPT-based GitHub APP. Type /chatgpt
to chat with robot 🤖️.
Powered by Probot & chatgpt-api
Try on issue#1
Try Review/Refactor on PR#7
event | description | example |
---|---|---|
/ping |
ping robot status | |
/chatgpt |
chat with bot on issue/PR comment | /chatgpt who are you? |
/review |
auto review code in the PR | /review fix the callback hell problem |
/refactor |
refactor the code | /refactor fix the callback hell problem |
.env
file following example.env
, please check config section in your GitHub apps page
APP_ID/PRIVATE_KEY/GITHUB_CLIENT_SECRET/GITHUB_CLIENT_ID
is required, please check chatgptbot settings and fill them.PRIVATE_KEY
is required, it should be encoded by base64
.(console.log(Buffer.from(<PRIVATE_KEY>).toString('base64'))
).SESSION_TOKEN
is required, it is generated by ChatGPT
website. You can get it following this step..env
file environment to vercel app environment-variables in setting page (for me it's https://vercel.com/oceanlvr/chatgptbot/settings/environment-variables
)${vercelAPPURL}/api/github/webhooks
. For me it's https://chatgptbot.vercel.app/api/github/webhooks/chatgpt
in an issue, chat with the botstep4: update webhook URL to your vercel app domain.
Note This package will switch to using the official API once it's released.
# Install dependencies
npm install
# Run the bot
npm dev
ISC © 2022 oceanlvr