File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ jobs:
14
14
- name : Get Asana Task Corresponding to Issue
15
15
env :
16
16
ISSUE_ID : ${{ github.event.issue.id }}
17
+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
17
18
WORKSPACE_ID : " 780103692902078"
18
19
run : |
20
+ REPO_SCOPED_ISSUE_ID="$REPO_FULL_NAME#$ISSUE_ID"
21
+
19
22
curl --request GET \
20
- --url "https://app.asana.com/api/1.0/workspaces/$WORKSPACE_ID/tasks/search?opt_fields=notes&text=$ISSUE_ID &sort_by=modified_at&sort_ascending=false" \
23
+ --url "https://app.asana.com/api/1.0/workspaces/$WORKSPACE_ID/tasks/search?opt_fields=notes&text=$REPO_SCOPED_ISSUE_ID &sort_by=modified_at&sort_ascending=false" \
21
24
--header 'accept: application/json' \
22
25
--header 'authorization: Bearer ${{ secrets.ASANA_PAT }}' \
23
26
--output response.json
Original file line number Diff line number Diff line change 18
18
ISSUE_HTML_URL : ${{ github.event.issue.html_url }}
19
19
ISSUE_ID : ${{ github.event.issue.id }}
20
20
ISSUE_NUMBER : ${{ github.event.issue.number }}
21
+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
21
22
SDK_PLATFORM_GROUP : " 1208961704779581"
22
23
SDK_PLATFORM_GROUP_MOBILE : " 1208961704779582"
23
24
SDK_PLATFORM : " 1208961704779592"
37
38
--arg url "$ISSUE_HTML_URL" \
38
39
--arg id "$ISSUE_ID" \
39
40
--arg number "$ISSUE_NUMBER" \
41
+ --arg repo_full_name "$REPO_FULL_NAME" \
40
42
--arg sdk_platform_group "$SDK_PLATFORM_GROUP" \
41
43
--arg sdk_platform_group_mobile "$SDK_PLATFORM_GROUP_MOBILE" \
42
44
--arg sdk_platform "$SDK_PLATFORM" \
61
63
"name": $title,
62
64
"workspace": $workspace_id,
63
65
"projects": [$project_id_github_and_important_sdk_issues, $project_id_sdk_backlog],
64
- "notes": "Issue ID: \($id)\nIssue number: \($number)\nCreated via GitHub Actions\n----\n\n\($body)"
66
+ "notes": "Issue ID: \($repo_full_name)#\($ id)\nIssue number: \($number)\nCreated via GitHub Actions\n----\n\n\($body)"
65
67
}
66
68
}')
67
69
Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ jobs:
14
14
- name : Get Asana Task Corresponding to Issue
15
15
env :
16
16
ISSUE_ID : ${{ github.event.issue.id }}
17
+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
17
18
WORKSPACE_ID : " 780103692902078"
18
19
run : |
20
+ REPO_SCOPED_ISSUE_ID="$REPO_FULL_NAME#$ISSUE_ID"
21
+
19
22
curl --request GET \
20
- --url "https://app.asana.com/api/1.0/workspaces/$WORKSPACE_ID/tasks/search?opt_fields=notes&text=$ISSUE_ID &sort_by=modified_at&sort_ascending=false" \
23
+ --url "https://app.asana.com/api/1.0/workspaces/$WORKSPACE_ID/tasks/search?opt_fields=notes&text=$REPO_SCOPED_ISSUE_ID &sort_by=modified_at&sort_ascending=false" \
21
24
--header 'accept: application/json' \
22
25
--header 'authorization: Bearer ${{ secrets.ASANA_PAT }}' \
23
26
--output response.json
You can’t perform that action at this time.
0 commit comments