It's a simple script for adding cards to Trello based on issues in gitlab project
- upload this script on your server
- you will need composer on your server
- run
composer.phar install --no-dev --optimize-autoloader
(composer.phar/composer)
- edit config.php
- required parameters in trello array:
- token (trello api token) [if you will using this script only for you, the best option is to use token from this page (click the link on "you can manually generate a Token.")
- key (Trello Developer API Key) You van find it here: https://trello.com/app-key
- board_name or board_id (e.g. "My awesome project" or [trello-board-id]) IMPORTANT it's not case sensitive
- list_name (e.g. Issues) IMPORTANT it's not case sensitive
- card name format:
- 0 (default) - no prefix, only issue name
- 1 - [issue_num] + issue_name (e.g.
[3] fix smth
) - 2 - [#issue_num] + issue_name (e.g.
[#3] fix smth
) - 3 - #issue_num + issue_name (e.g.
#3 fix smth
)
- go to your project's settings
- go to "Web hooks"
- add link to your script destination (e.g. https://example.com/gitlab-trello/index.php)
- check "Issues events"
- add Web Hook
- In your choosen Trello board->list new issues will be added every time anyone has opened an issue in your repository
- If you want to contribute - see TODO.md for what is needed to add
- Yes, this script is very simple script, sorry for this. If you want you can improve it.
Great thanks to cdaguerre for awesome Trello Api Client
MIT