Issues Creator Bot is a Telegram bot made for creating issues at Gitlab and create Cards at Trello.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
First clone the repository.
Then, create a Telegram Bot and get the token as explained
here.
Save the token at the TELEGRAM_BOT_TOKEN
in the .env
file.
Create a Gitlab Private Token as explained
here.
Save the token at the GITLAB_PRIVATE_TOKEN
in the .env
file.
Create a Trello Token and API Key as explained
here.
Save the token at the TRELLO_TOKEN
and the TRELLO_KEY
in the .env
file.
Now you should be able to make requests to the Trello API as described
here.
Get the id
from the list where you want to create the new card and fill it at the TRELLO_LIST_ID
in the .env
file.
I recommend you create a virtual environment with
virtualenv venv -p=python3
Now, you can install the prerequisites using pip
pip install -r requirements.txt
Now that you're ready to go. Just run the code
python src/issuesbot/main.py
You can use the built Docker Image guilhermezat/issues-creator-bot
or you can create your own image using
the Dockerfile
.
For using the Docker Image download the .env
file, fill it as explained at pre requisites section and run the command
docker run -it --rm --env-file .env guilhermezat/issues-creator-bot
For building your own Docker Image run
docker build -t {TAG} .
Then, run the container
docker run -it --rm --env-file .env {TAG}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.