Connect Teamwork Projects, Github or Bitbucket. Use their Webhooks to improve your Teamwork Projects + Git workflow. Aimed at software developers using both Teamwork Projects + Github or Bitbucket.
- Clone the repository
- Copy the file called .env.example to .env and set your own TEAMWORK_URL and TEAMWORK_APIKEY
- Give the /logs folder write permissions
- Point one or more webhooks in Teamwork Projects to webhooks.php
- Automatically add a Task ID and other information to the description of a new Task in Teamwork Projects
- Expose the Project Number of a new Project in Teamwork Projects
- Add Github Commit messages as Task Comments in Teamwork Projects
Create a TASK.CREATED webhook in your Teamwork Projects account and point it to: https://your_deployment_location/gittwork/public/webhooks.php
This will update the task description to include:
Include "[12345678]" or "[Finish(ed) 12345678]" to update this Task when making a commit. Record time spent on the task by using: "[12345678:30]"
Create a PROJECT.CREATED webhook in your Teamwork Projects account and point it to: https://your_deployment_location/gittwork/public/webhooks.php
This will update the a new Project title from "New Project" to "[1] New Project"
Create a Webhook in your Github repository and point it to : https://your_deployment_location/gittwork/public/github.php
This will receive Github commit data and add the commit message as a Comment to your Task, based on the Task ID used in the commit message.