A GitHub App built with Probot that allows you to talk to ChatGPT using Issue and PR comments.
# Install dependencies
npm install
# Build the bot
npm build
# Run the bot
npm start
# 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
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 }}
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.
ISC © 2023 Austen Stone