项目
在 GitHub 查看
oceanlvr/ChatGPT-ProBot
关于
🤖️ 一个基于 ChatGPT 的 GitHub 机器人,可进行对话、CR 等。
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ChatGPT ProBot
A ChatGPT-based GitHub APP. Type /chatgpt to chat with robot 🤖️.

Powered by Probot & chatgpt-api
Usage
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 |
Deploy your own APP
- Install & Configure the GitHub App
- Create
.envfile followingexample.env, please check config section in your GitHub apps pageAPP_ID/PRIVATE_KEY/GITHUB_CLIENT_SECRET/GITHUB_CLIENT_IDis required, please check chatgptbot settings and fill them.PRIVATE_KEYis required, it should be encoded bybase64.(console.log(Buffer.from(<PRIVATE_KEY>).toString('base64'))).SESSION_TOKENis required, it is generated byChatGPTwebsite. You can get it following this step.
- Vercel Deploy (recommend), click
to clone deploy. Copy
.envfile environment to vercel app environment-variables in setting page (for me it'shttps://vercel.com/oceanlvr/chatgptbot/settings/environment-variables) - Edit the webhooks URL to
${vercelAPPURL}/api/github/webhooks. For me it's https://chatgptbot.vercel.app/api/github/webhooks - Type
/chatgptin an issue, chat with the bot
step4: update webhook URL to your vercel app domain.

Note This package will switch to using the official API once it's released.
Dev
# Install dependencies
npm install
# Run the bot
npm dev
License
ISC © 2022 oceanlvr
探索相关项目
加载中…