Skip to content

Commit b6995f1

Browse files
author
Julian Dehm
committed
replace with asana gha
1 parent c5effc2 commit b6995f1

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
name: Pull Request Reviewed
2-
31
on:
2+
pull_request:
3+
types: [opened, closed, reopened]
44
pull_request_review:
55
types: [submitted]
66

77
jobs:
8-
pr-reviewed:
9-
if: github.event.review.state == 'approved'
8+
create-comment-in-asana-task-job:
109
runs-on: ubuntu-latest
10+
name: Create a comment in Asana Task
1111
steps:
12-
- name: Update Asana task -> PR approved
13-
uses: duckduckgo/[email protected]
12+
- name: Create a comment
13+
uses: Asana/[email protected]
14+
id: createComment
1415
with:
15-
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
16-
trigger-phrase: "ATASK:"
17-
action: 'notify-pr-approved'
16+
asana-secret: ${{ secrets.ASANA_SECRET }}
17+
comment-text: "{{PR_NAME}} is {{PR_STATE}}: {{PR_URL}}"
18+
- name: Get status
19+
run: echo "Status is ${{ steps.createComment.outputs.status }}"

0 commit comments

Comments
 (0)