Teamwork / github-sync

This action helps you to sync your PRs with tasks in Teamwork to streamline team collaboration and your development workflows.
https://developer.teamwork.com
MIT License
65 stars 26 forks source link

Have automatic tagging as an option #35

Closed ychartois closed 3 years ago

ychartois commented 3 years ago

Not everybody would like to have automatic tagging as it's tied to personal workflow. It perfect when your workflow follow the: 1 task = 1 PR, but it's not always the case. By default the automatic tagging is turned off, if you want to enable it, you have to add it to your teamwork.yml like:

        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          TEAMWORK_URI: ${{ secrets.TEAMWORK_URI }}
          TEAMWORK_API_TOKEN: ${{ secrets.TEAMWORK_API_TOKEN }}
          AUTOMATIC_TAGGING: false

Fixes https://github.com/Teamwork/github-sync/pull/33

ychartois commented 3 years ago

I did test but might have miss something... anyway, the "Ensure this projects runs" is stuck since yesterday...

miguelbemartin commented 3 years ago

I did test but might have miss something... anyway, the "Ensure this projects runs" is stuck since yesterday...

This is because this only runs when:

on:
  pull_request:
    types: [opened, closed]
  pull_request_review:
    types: [submitted, dismissed]

so if you update the PR, the workflow to test the action doesn't run again.

miguelbemartin commented 3 years ago

@ychartois feel free to merge this PR.

Don't forget to add a "new release" after PR has been merged.