Skip to content

Commit f86e542

Browse files
fix: update issue.yml to use issue number as Ticket title (#119)
1 parent 3a465a9 commit f86e542

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/issues.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
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}" \
@@ -35,7 +33,7 @@
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
},

0 commit comments

Comments
 (0)