mirror of
https://github.com/godotengine/issue-bot.git
synced 2025-12-31 05:48:38 +03:00
82ff9a64f8564515a005aa938670ab9dc1a04413
This solves some common formatting issues
Godot Issuebot
Simple bot to ferry between rocket.chat and Github. If you want to run one for yourself you can build the container.
What does it do? It will add issue/pr links to messages that mention a valid issue. Either by typing #1335 to go to the default repository or repository#345 for a particular one. The bot will edit the message in question and add links, description, and status to the message.
Environment variables
The following environment variables are supported:
BOT_DEBUG- Turn on exessive debug messages when setDEFAULT_AVATAR_URL- required url to some image if gh can't provide an avatarDEFAULT_REPOSITORY- required default repository to search if a 'bare' issue # gets sentROCKET_WS_URL- required url to the rocket.chat server (wss://chat.godotengine.org/websocket)ROCKET_USERNAME- required username of the rocket.chat user to login asROCKET_PASSWORD- required password of the rocket.chat userGITHUB_PROJECT- required github project to search inGITHUB_USERNAME- required username to use for the github APIsGITHUB_TOKEN- required github user token to authenticate to the APIs with
Running without a container
Requirements are pretty small, only python-requests and python-websockets are required. After that make sure you set the above env variables and you're good to go!
Running the bot through podman
Docker users can probable just replace podman with docker
- clone the repostiory
podman build . -t issuebot:latestpodman run -it --env-file=env issuebot:latest
example env file:
BOT_DEBUG=true
DEFAULT_AVATAR_URL=https://chat.godotengine.org/avatar/github
DEFAULT_REPOSITORY=godot
GITHUB_PROJECT=godotengine
ROCKET_WS_URL=wss://chat.godotengine.org/websocket
ROCKET_USERNAME=github
ROCKET_PASSWORD=supersecret
GITHUB_USERNAME=hpvb
GITHUB_TOKEN=verysecret
Description
Languages
Python
50.1%
Shell
40.5%
PowerShell
8.7%
Dockerfile
0.7%
