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 1616 id : create
1717 shell : bash
1818 env :
19- ISSUE_TITLE : ${{ github.event.issue.title }}
19+ ISSUE_NUMBER : ${{ github.event.issue.number }}
2020 ISSUE_BODY : ${{ github.event.issue.body }}
2121 ISSUE_URL : ${{ github.event.issue.html_url }}
2222 JIRA_API_TOKEN : ${{ secrets.JIRA_API_TOKEN }}
2323 JIRA_ASSIGNEE : ${{ secrets.ASSIGNEE_JIRA_TICKET }}
2424 run : |
2525
26- # Use the tr command to remove the special characters from ISSUE_TITLE
27- ISSUE_TITLE_NO_SPECIAL_CHARS=$(echo "$ISSUE_TITLE" | tr -d '!$&*@#"\047\140')
2826 json_response=$(curl --request POST \
2927 --url 'https://jira.mongodb.org/rest/api/2/issue' \
3028 --header 'Authorization: Bearer '"${JIRA_API_TOKEN}" \
3533 "project": {
3634 "id": "19383"
3735 },
38- "summary": "HELP: '"${ISSUE_TITLE_NO_SPECIAL_CHARS }"'",
36+ "summary": "HELP: GitHub Issue n. '"${ISSUE_NUMBER }"'",
3937 "issuetype": {
4038 "id": "3"
4139 },
You can’t perform that action at this time.
0 commit comments