-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(asana): Fix In Development with racing PR open and PR review_requ…
…ested
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ on: | |
type: string | ||
required: false | ||
description: The Asana project section for tickets with PRs that are in development. Requires secrets.asana-token. | ||
merged-section: | ||
type: string | ||
required: false | ||
description: The Asana project section for tickets with PRs that have been merged. Requires secrets.asana-token. | ||
review-section: | ||
type: string | ||
required: false | ||
description: The Asana project section for tickets with PRs that have a review requested. Requires secrets.asana-token. | ||
merged-section: | ||
type: string | ||
required: false | ||
description: The Asana project section for tickets with PRs that have been merged. Requires secrets.asana-token. | ||
complete-on-merge: | ||
type: boolean | ||
default: false | ||
|
@@ -47,7 +47,7 @@ jobs: | |
move-to-in-development-asana-ticket-job: | ||
runs-on: ubuntu-latest | ||
needs: check-for-secrets | ||
if: inputs.development-section != '' && needs.check-for-secrets.outputs.has-asana-token == 'yes' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'converted_to_draft') && github.actor != 'dependabot[bot]' | ||
if: inputs.development-section != '' && needs.check-for-secrets.outputs.has-asana-token == 'yes' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'converted_to_draft' || github.event.action == 'edited') && (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 to In Development | ||
uses: mbta/[email protected] | ||
|
@@ -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.actor != 'dependabot[bot]' | ||
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]' | ||
steps: | ||
- name: Move ticket on review requested | ||
uses: mbta/[email protected] | ||
|