Skip to content

Commit

Permalink
Trigger add-task-to-project when PR marked ready for review (#3273)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1208036161861763/1207931637636063/f

## Description

Trigger add-task-to-project when PR marked ready for review

**Definition of Done**:

* [ ] Does this PR satisfy our [Definition of
Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)?

---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
[Pull Request
Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f)

---------

Co-authored-by: Mariusz Śpiewak <[email protected]>
  • Loading branch information
diegoreymendez and dus7 authored Sep 24, 2024
1 parent 0ad3d11 commit 423f347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr_task_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Asana PR Task URL

on:
pull_request:
types: [opened, edited, closed, synchronize, review_requested]
types: [opened, edited, closed, synchronize, review_requested, ready_for_review]

jobs:

Expand All @@ -14,6 +14,8 @@ jobs:

runs-on: ubuntu-latest

if: ${{ !github.event.pull_request.draft }}

outputs:
task_id: ${{ steps.get-task-id.outputs.task_id }}
task_in_project: ${{ steps.check-board-membership.outputs.task_in_project }}
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:
- name: Add Task to the App Board Project
id: add-task-to-project
if: ${{ github.event.action == 'opened' && steps.check-board-membership.outputs.task_in_project == '0' }}
if: ${{ (github.event.action == 'opened' || github.event.action == 'ready_for_review') && steps.check-board-membership.outputs.task_in_project == '0' }}
env:
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
ASANA_PROJECT_ID: ${{ vars.MACOS_APP_BOARD_ASANA_PROJECT_ID }}
Expand Down

0 comments on commit 423f347

Please sign in to comment.