-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions to sync with asana
- sync issues to asana - link PRs to tasks (if a task is specified in the PR description) - add comment to task if PR was approved - add comment to task if PR was merged (optional: mark task as completed)
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Add comment in Asana task | ||
uses: duckduckgo/[email protected] | ||
with: | ||
asana-pat: ${{ secrets.GH_ASANA_SECRET }} | ||
trigger-phrase: 'STORY:' | ||
action: 'add-asana-comment' |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Pull Request Reviewed | ||
|
||
on: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
pr-reviewed: | ||
if: github.event.review.state == 'approved' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update Asana task -> PR approved | ||
uses: duckduckgo/[email protected] | ||
with: | ||
asana-pat: ${{ secrets.GH_ASANA_SECRET }} | ||
trigger-phrase: "STORY:" | ||
action: 'notify-pr-approved' |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
add-pr-merged-comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: duckduckgo/[email protected] | ||
if: github.event.pull_request.merged | ||
with: | ||
asana-pat: ${{ secrets.GH_ASANA_SECRET }} | ||
trigger-phrase: 'STORY:' | ||
action: 'notify-pr-merged' | ||
is-complete: false |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on: | ||
issues: | ||
types: [opened, reopened] | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: duckduckgo/[email protected] | ||
with: | ||
asana-pat: ${{ secrets.GH_ASANA_SECRET }} | ||
asana-project: ${{ vars.GH_ASANA_PROJECT_ID }} | ||
action: 'create-asana-issue-task' |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Added | ||
|
||
- add github workflow to | ||
- sync issues to asana | ||
- link PRs to tasks (if a task is specified in the PR description) | ||
- add comment to task if PR was approved | ||
- add comment to task if PR was merged (optional: mark task as completed) |