The script enables you to use the GitLab closing pattern to close issues, tasks and userstories in your Taiga.io project.
Copy this folder to some PHP (>=5.3) supporting Webserver which is accessable by your GitLab instance.
- copy config.default.php to config.php
- update config.php with your settings
In the following steps, please replace PROJECT_NAME
with yout Taiga project URL and http://example.com/git2taiga/
with the URL of this script.
- Add a new web hook for “Push events” to your project with the target url
http://example.com/git2taiga/?project=PROJECT_NAME
- (optional) To link issues in GitLab to your Taiga installation add a custom issue tracker in project services using the following urls:
Project url: http://example.com/git2taiga/?redirect&project=PROJECT_NAME
Issues url: http://example.com/git2taiga/?redirect&project=PROJECT_NAME&issue=:id
New issue url: http://example.com/git2taiga/?redirect&project=PROJECT_NAME&issue=new
When a commit is merged into the master and uses the GitLab closing pattern the task is set to the first status that is marked as closed in the Taiga settings. A comment linking to the GitLab commit will be add to the item.
When the current status of the item is higher then the first close status this script will not change anything.