-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (30 loc) · 1.25 KB
/
push_new_issues_to_asana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# name: "Push New Issues to Asana"
# on:
# issues:
# types: [opened]
# jobs:
# Create-Asana-Task-For-Issue:
# runs-on: ubuntu-latest
# steps:
# - name: "Open Asana Issue"
# env:
# GITHUB_REPOSITORY: ${{ github.repository }}
# ASANA_PAT: ${{ secrets.ASANA_PAT }}
# ASANA_WORKSPACE: ${{ secrets.ASANA_WORKSPACE }}
# ASANA_PROJECT: ${{ secrets.ASANA_PROJECT }}
# ISSUE_TITLE: ${{ github.event.issue.title }}
# ISSUE_URL: ${{ github.event.issue.html_url }}
# run: |
# curl --request POST \
# --url https://app.asana.com/api/1.0/tasks \
# --header "accept: application/json" \
# --header "authorization: Bearer $ASANA_PAT" \
# --header 'content-type: application/json' \
# --data "{
# \"data\": {
# \"workspace\": \"$ASANA_WORKSPACE\",
# \"name\": \"[$GITHUB_REPOSITORY] $ISSUE_TITLE\",
# \"projects\": [ \"$ASANA_PROJECT\" ],
# \"notes\": \"A new issue has been created. \nGo here for full details: $ISSUE_URL\"
# }
# }"