Skip to content

Telegram bot for creating issues at Gitlab and a card at Trello

License

Notifications You must be signed in to change notification settings

guilhermezat/issues-creator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issues Creator Bot

Issues Creator Bot is a Telegram bot made for creating issues at Gitlab and create Cards at Trello.

Getting Started

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.

Pre requisites

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 .envfile.

Installation

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

Deployment

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}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Telegram bot for creating issues at Gitlab and a card at Trello

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published