Skip to content

Commit c19fb06

Browse files
committed
πŸ› Refines bug issue Discord notification
- Updates the workflow to accurately identify bug issues using a hidden marker in the issue body. - Improves the Discord notification message with a more appropriate bug icon.
1 parent fc14d5d commit c19fb06

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

β€Ž.github/workflows/issue-bug-to-discord.ymlβ€Ž

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
notify_discord:
99
runs-on: ubuntu-latest
1010

11-
# Only run for issues whose type is "Bug"
12-
if: contains(github.event.issue.body, 'issue-type: task')
11+
# Only run for issues whose hidden marker is "issue-type: bug"
12+
if: ${{ contains(github.event.issue.body, 'issue-type: bug') }}
1313

1414
steps:
1515
- name: Send Discord notification
@@ -30,11 +30,8 @@ jobs:
3030
payload=$(jq -n \
3131
--arg username "GitHub Bot" \
3232
--arg content "" \
33-
--arg title "πŸ› New Bug issue in $REPO_NAME" \
34-
--arg desc "**#${ISSUE_NUMBER} – $ISSUE_TITLE**\n"\
35-
"**Author:** $ISSUE_USER\n"\
36-
"**Link:** $ISSUE_URL\n\n"\
37-
"**Description (truncated):**\n$SHORT_BODY" \
33+
--arg title "🐞 New Bug issue in $REPO_NAME" \
34+
--arg desc "**#${ISSUE_NUMBER} – $ISSUE_TITLE**\n**Author:** $ISSUE_USER\n**Link:** $ISSUE_URL\n\n**Description (truncated):**\n$SHORT_BODY" \
3835
'{
3936
"username": $username,
4037
"content": $content,

0 commit comments

Comments
Β (0)