chatgpt-bot
chatgpt-bot copied to clipboard
Talk to Chat GPT using Issue and PR comments
chatgpt-bot
A GitHub App built with Probot that allows you to talk to ChatGPT using Issue and PR comments.
Issue Example Image
PR Example Image
Setup
# Install dependencies
npm install
# Build the bot
npm build
# Run the bot
npm start
Docker
# 1. Build container
docker build -t chatgpt-bot .
# 2. Start container
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> chatgpt-bot
Or use the published version here
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> ghcr.io/austenstone/chatgpt-bot:main
Action
We also use @probot/adapter-github-actions to run this App as a GitHub Action. See usage.yml.
name: ChatGPT Bot
on:
issue_comment:
types:
- created
jobs:
run-bot:
runs-on: ubuntu-latest
steps:
- uses: austenstone/chatgpt-bot@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Contributing
If you have suggestions for how chatgpt-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the Contributing Guide.
License
ISC © 2023 Austen Stone