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:
1414 - name : Get Asana Task Corresponding to Issue
1515 env :
1616 ISSUE_ID : ${{ github.event.issue.id }}
17+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
1718 WORKSPACE_ID : " 780103692902078"
1819 run : |
20+ REPO_SCOPED_ISSUE_ID="$REPO_FULL_NAME#$ISSUE_ID"
21+
1922 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" \
2124 --header 'accept: application/json' \
2225 --header 'authorization: Bearer ${{ secrets.ASANA_PAT }}' \
2326 --output response.json
Original file line number Diff line number Diff line change 1818 ISSUE_HTML_URL : ${{ github.event.issue.html_url }}
1919 ISSUE_ID : ${{ github.event.issue.id }}
2020 ISSUE_NUMBER : ${{ github.event.issue.number }}
21+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
2122 SDK_PLATFORM_GROUP : " 1208961704779581"
2223 SDK_PLATFORM_GROUP_MOBILE : " 1208961704779582"
2324 SDK_PLATFORM : " 1208961704779592"
3738 --arg url "$ISSUE_HTML_URL" \
3839 --arg id "$ISSUE_ID" \
3940 --arg number "$ISSUE_NUMBER" \
41+ --arg repo_full_name "$REPO_FULL_NAME" \
4042 --arg sdk_platform_group "$SDK_PLATFORM_GROUP" \
4143 --arg sdk_platform_group_mobile "$SDK_PLATFORM_GROUP_MOBILE" \
4244 --arg sdk_platform "$SDK_PLATFORM" \
6163 "name": $title,
6264 "workspace": $workspace_id,
6365 "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)"
6567 }
6668 }')
6769
Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ jobs:
1414 - name : Get Asana Task Corresponding to Issue
1515 env :
1616 ISSUE_ID : ${{ github.event.issue.id }}
17+ REPO_FULL_NAME : ${{ github.event.repository.full_name }}
1718 WORKSPACE_ID : " 780103692902078"
1819 run : |
20+ REPO_SCOPED_ISSUE_ID="$REPO_FULL_NAME#$ISSUE_ID"
21+
1922 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" \
2124 --header 'accept: application/json' \
2225 --header 'authorization: Bearer ${{ secrets.ASANA_PAT }}' \
2326 --output response.json
You can’t perform that action at this time.
0 commit comments