You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/apps/chatgptbot)[](https://vercel.com/new/clone?repository-url=https://github.com/oceanlvr/ChatGPTBot)
5
6
6
-
A ChatGPT-based GitHub APP. Type `/chatgpt` to chat with robot 🤖️. **Try on [issue#1](https://github.com/oceanlvr/ChatGPT-ProBot/issues/1)**
7
-
7
+
A ChatGPT-based GitHub APP. Type `/chatgpt` to chat with robot 🤖️.
8
8
9
9

10
10
11
11
Powered by [Probot](https://github.com/probot/probot) & [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api)
12
12
13
-
## Deploy your own APP
13
+
## Usage
14
14
15
+
**Try on [issue#1](https://github.com/oceanlvr/ChatGPT-ProBot/issues/1)**
15
16
17
+
**Try Review/Refactor on [PR#7](https://github.com/oceanlvr/ChatGPT-ProBot/pull/7)**
|`/chatgpt`| chat with bot on issue/PR comment | /chatgpt who are you? |
23
+
|`/review`| auto review code in the PR | /review fix the callback hell problem |
24
+
|`/refactor`| refactor the code | /refactor fix the callback hell problem |
25
+
26
+
## Deploy your own APP
16
27
17
28
1.[Install & Configure the GitHub App](https://github.com/apps/chatgptbot)
18
29
2. Create `.env` file following `example.env`, please check config section in your [GitHub apps page](https://github.com/settings/apps)
19
30
1.`APP_ID/PRIVATE_KEY/GITHUB_CLIENT_SECRET/GITHUB_CLIENT_ID` is required, please check [chatgptbot settings](https://github.com/settings/apps/chatgptbot) and fill them.
20
31
2.**`PRIVATE_KEY` is required, it should be encoded by `base64`**.(`console.log(Buffer.from(<PRIVATE_KEY>).toString('base64'))`).
21
32
3.`SESSION_TOKEN` is required, it is generated by `ChatGPT`[website](https://chat.openai.com/chat). You can get it following [this step](https://github.com/transitive-bullshit/chatgpt-api#how-it-works).
22
33
3. Vercel Deploy (**recommend**), click [](https://vercel.com/new/clone?repository-url=https://github.com/oceanlvr/ChatGPTBot) to clone deploy. Copy `.env` file environment to vercel app [environment-variables](https://vercel.com/docs/concepts/projects/environment-variables) in setting page (for me it's `https://vercel.com/oceanlvr/chatgptbot/settings/environment-variables`)
23
-
4. Edit the webhooks URL to `${vercelAPPURL}/api/github/webhooks`. For me it's https://chatgptbot.vercel.app/api/github/webhooks
34
+
4. Edit the webhooks URL to `${vercelAPPURL}/api/github/webhooks`. For me it's <https://chatgptbot.vercel.app/api/github/webhooks>
24
35
5. Type `/chatgpt` in an issue, chat with the bot
25
36
26
37
*step4: update webhook URL to your vercel app domain.*
0 commit comments