From b6ee5abcc3a2827fa4d0a35bff97cb7551fb890b Mon Sep 17 00:00:00 2001 From: meagharty <149533950+meagharty@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:12:53 -0500 Subject: [PATCH] feat(asana): support state transition from draft -> ready_for_review with reviewers already set (#25) --- .github/workflows/asana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/asana.yml b/.github/workflows/asana.yml index 7063129..7df2083 100644 --- a/.github/workflows/asana.yml +++ b/.github/workflows/asana.yml @@ -70,7 +70,7 @@ jobs: move-to-in-review-asana-ticket-job: runs-on: ubuntu-latest needs: check-for-secrets - if: inputs.review-section != '' && needs.check-for-secrets.outputs.has-asana-token == 'yes' && github.event.action == 'review_requested' && !github.event.pull_request.draft && github.actor != 'dependabot[bot]' + if: inputs.review-section != '' && needs.check-for-secrets.outputs.has-asana-token == 'yes' && (github.event.action == 'review_requested' || github.event.action == 'ready_for_review' && (toJson(github.event.pull_request.requested_reviewers) != '[]' || toJson(github.event.pull_request.requested_teams) != '[]')) && !github.event.pull_request.draft && github.actor != 'dependabot[bot]' steps: - name: Move ticket on review requested uses: mbta/github-asana-action@v4.4.1