View all files | ||||
This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.
Create the next environment vars in your repository:
Please Note: The Teamwork account associated with this API key is the account which these comments will be created under. If this user does not have permission to access the project, this action will be ignored.
GITHUB_TOKEN doesn't need to be setup in the repository, this var is always available during the workflows execution.
Create a new file /.github/workflows/teamwork.yml with the following:
When creating a new PR, write in the description of the PR the URL of the task. The action will automatically add a comment in the task. Optionally, you may choose for a lightweight comment that will only include the PR title, URL and the user that performed the action, to enable this option set the LIGHTWEIGHT_COMMENT input to true.
Please note, the comment will be created in Teamwork under the account you have attached to this action. If the API key of the user you are using does not have permissions to access certain projects, the comment will not be created.
Tags are added automatically on the task if you are have the option AUTOMATIC_TAGGING set to true and the tag exists in you targeting project:
You may also specify workflow stages you'd like the task to be moved to on every stage of the PR:
The stage names will be checked against the stages of every workflow in the task's project, this will be using a contains() method so you may specify part of the name instead of the full name, however this contains() check is case-sensitive. The first matching stage will be used.
This project is licensed under the MIT License - see the LICENSE file for details