Skip to content

Commit 802ab24

Browse files
fix: update issue.yml to use issue number as Ticket title (#178)
1 parent 90de7b7 commit 802ab24

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
@@ -17,15 +17,13 @@
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}" \
@@ -36,7 +34,7 @@
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
},

0 commit comments

Comments
 (0)