Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austenstone/chatgpt-bot
Talk to Chat GPT using Issue and PR comments
https://github.com/austenstone/chatgpt-bot
actions chatgpt openai probot
Last synced: about 1 month ago
JSON representation
Talk to Chat GPT using Issue and PR comments
- Host: GitHub
- URL: https://github.com/austenstone/chatgpt-bot
- Owner: austenstone
- License: isc
- Created: 2023-03-02T17:57:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-20T07:21:02.000Z (over 1 year ago)
- Last Synced: 2024-10-06T20:05:01.849Z (about 1 month ago)
- Topics: actions, chatgpt, openai, probot
- Language: TypeScript
- Homepage:
- Size: 2.36 MB
- Stars: 18
- Watchers: 3
- Forks: 9
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# chatgpt-bot
A GitHub App built with [Probot](https://github.com/probot/probot) that allows you to talk to ChatGPT using Issue and PR comments.
Issue Example Image
![image](https://marketplace-screenshots.githubusercontent.com/14679/817e76d7-5acb-4746-af56-47994a832743?auto=webp&format=jpeg&width=670&dpr=1.5)
PR Example Image
![image](https://marketplace-screenshots.githubusercontent.com/14679/50322429-3714-4950-954c-8c2bf1af4bf0?auto=webp&format=jpeg&width=670&dpr=1.5)
## Setup
See [Configuring a GitHub App](https://probot.github.io/docs/development/#configuring-a-github-app)
```sh
# Install dependencies
npm install# Build the bot
npm build# Run the bot
npm start
```## Docker
```sh
# 1. Build container
docker build -t chatgpt-bot .# 2. Start container
docker run -e APP_ID= -e PRIVATE_KEY= chatgpt-bot
```Or use the published version [here](https://github.com/austenstone/chatgpt-bot/pkgs/container/chatgpt-bot)
```
docker run -e APP_ID= -e PRIVATE_KEY= ghcr.io/austenstone/chatgpt-bot:main
```## Action
We also use [@probot/adapter-github-actions](https://www.npmjs.com/package/@probot/adapter-github-actions) to run this App as a GitHub Action.
See [usage.yml](https://github.com/austenstone/chatgpt-bot/blob/main/.github/workflows/usage.yml).```yml
name: ChatGPT Boton:
issue_comment:
types:
- createdjobs:
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](CONTRIBUTING.md).
## License
[ISC](LICENSE) © 2023 Austen Stone