File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1717 id : create
1818 shell : bash
1919 env :
20- ISSUE_TITLE : ${{ github.event.issue.title }}
20+ ISSUE_NUMBER : ${{ github.event.issue.number }}
2121 ISSUE_BODY : ${{ github.event.issue.body }}
2222 ISSUE_URL : ${{ github.event.issue.html_url }}
2323 JIRA_API_TOKEN : ${{ secrets.JIRA_API_TOKEN }}
2424 JIRA_ASSIGNEE : ${{ secrets.ASSIGNEE_JIRA_TICKET }}
2525 run : |
2626
27- # Use the tr command to remove the special characters from ISSUE_TITLE
28- ISSUE_TITLE_NO_SPECIAL_CHARS=$(echo "$ISSUE_TITLE" | tr -d '!$&*@#"\047\140')
2927 json_response=$(curl --request POST \
3028 --url 'https://jira.mongodb.org/rest/api/2/issue' \
3129 --header 'Authorization: Bearer '"${JIRA_API_TOKEN}" \
3634 "project": {
3735 "id": "10984"
3836 },
39- "summary": "HELP: '"${ISSUE_TITLE_NO_SPECIAL_CHARS }"'",
37+ "summary": "HELP: GitHub Issue n. '"${ISSUE_NUMBER }"'",
4038 "issuetype": {
4139 "id": "12"
4240 },
You can’t perform that action at this time.
0 commit comments