Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teamwork/github-sync
This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.
https://github.com/teamwork/github-sync
github-actions teamwork
Last synced: 3 days ago
JSON representation
This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.
- Host: GitHub
- URL: https://github.com/teamwork/github-sync
- Owner: Teamwork
- License: mit
- Created: 2020-08-24T09:01:53.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T18:14:29.000Z (4 months ago)
- Last Synced: 2024-11-02T20:33:09.562Z (12 days ago)
- Topics: github-actions, teamwork
- Language: Shell
- Homepage: https://developer.teamwork.com
- Size: 183 KB
- Stars: 65
- Watchers: 42
- Forks: 25
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Teamwork GitHub Sync
This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.![Linter](https://github.com/Teamwork/github-sync/workflows/Linter/badge.svg)
## Getting Started
### Prerequisites
Create the next environment vars in your repository:
* `TEAMWORK_URI`: The URL of your installation (e.g.: https://yourcompany.teamwork.com)
* `TEAMWORK_API_TOKEN`: The API token to authenticate the workflow. Follow [this guide](https://support.teamwork.com/projects/using-teamwork/locating-your-api-key) to find your URL and API key.**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.
### Installation
Create a new file `/.github/workflows/teamwork.yml` with the following:```yaml
name: teamworkon:
pull_request:
types: [opened, closed]
pull_request_review:
types: [submitted]jobs:
teamwork-sync:
runs-on: ubuntu-latest
name: Teamwork Sync
steps:
- uses: teamwork/github-sync@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEAMWORK_URI: ${{ secrets.TEAMWORK_URI }}
TEAMWORK_API_TOKEN: ${{ secrets.TEAMWORK_API_TOKEN }}
AUTOMATIC_TAGGING: false
BOARD_COLUMN_OPENED: 'PR Open'
BOARD_COLUMN_MERGED: 'Ready to Test'
BOARD_COLUMN_CLOSED: 'Rejected'
env:
IGNORE_PROJECT_IDS: '1 2 3'```
## Usage
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.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.
![GitHub pr comment](./.github/assets/github_pr_comment.png)
![Teamwork pr comment](./.github/assets/teamwork_pr_comment.png)
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:
- A new PR is open: tag `PR Open`
- A PR is approved: tag `PR Approved` added
- A PR is merged: tags `PR Open` and `PR Approved` removed, tag `PR merged` added
- A PR is closed: tags `PR Open` and `PR Approved` removedYou may also specify columns you'd like the task to be moved to on every stage of the PR:
- `BOARD_COLUMN_OPENED`: The case-sensitive column name of the column you'd like the task to be moved to once the PR has been opened
- `BOARD_COLUMN_MERGED`: The case-sensitive column name of the column you'd like the task to be moved to once the PR has been merged
- `BOARD_COLUMN_CLOSED`: The case-sensitive column name of the column you'd like the task to be moved to if the PR was closed without being mergedThe column names will be checked against all board columns 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 column will be used.
## Contributing
* Open a PR: https://github.com/Teamwork/github-sync/pulls
* Open an issue: https://github.com/Teamwork/github-sync/issues## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details