Skip to content

Commit 0b8ce7c

Browse files
author
LittleCoinCoin
committed
fix(ci): Discord notification image URLs to use raw GitHub content
Replace GitHub blob URLs with raw.githubusercontent.com URLs to ensure Discord embeds can properly display images. Blob URLs serve HTML pages rather than direct image content, which Discord webhooks cannot render. Changes: - prerelease-discord-notification.yml: Update image and avatar_url - release-discord-notification.yml: Update image and avatar_url Both workflows now use raw.githubusercontent.com URLs that return direct image data with proper MIME types for Discord embed rendering.
1 parent a444c65 commit 0b8ce7c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/prerelease-discord-notification.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
Help us make *Hatch!* better by testing and reporting [issues](https://github.com/CrackingShells/Hatch/issues)! 🐛➡️✨
2727
color: 0xff9500 # Orange color for pre-release
2828
username: "Cracking Shells Pre-release Bot"
29-
image: "https://github.com/CrackingShells/.github/blob/main/resources/images/hatch_icon_dark_bg_transparent.png"
30-
avatar_url: "https://github.com/CrackingShells/.github/blob/main/resources/images/cs_core_dark_bg.png"
29+
image: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/hatch_icon_dark_bg_transparent.png"
30+
avatar_url: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/cs_core_dark_bg.png"

.github/workflows/release-discord-notification.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
Happy MCP coding with *Hatch!* 🐣
2626
color: 0x00ff88
2727
username: "Cracking Shells Release Bot"
28-
image: "https://github.com/CrackingShells/.github/blob/main/resources/images/hatch_icon_dark_bg_transparent.png"
29-
avatar_url: "https://github.com/CrackingShells/.github/blob/main/resources/images/cs_core_dark_bg.png"
28+
image: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/hatch_icon_dark_bg_transparent.png"
29+
avatar_url: "https://raw.githubusercontent.com/CrackingShells/.github/main/resources/images/cs_core_dark_bg.png"

0 commit comments

Comments
 (0)