Add GitHub Actions workflow for Discord notifications - #11
Conversation
|
Hi @chikle9090 , |
|
Hi, thanks for pointing that out! |
|
Hi @chikle9090 , have you made the changes for? (lines 17-18)
|
|
Yes — lines 16–17 have been updated to use Bash-style \ instead of ^. |
mohi-devhub
left a comment
There was a problem hiding this comment.
Found a few things to address:
-
The curl command should explicitly specify -X POST.
-
The notification content is very minimal , consider including event name, repo, actor, and a relevant link.
-
There’s no error handling for failed webhook requests.
-
The workflow triggers on all pushes/PRs/issues, which could lead to Discord spam , consider narrowing triggers or adding conditions.
As an alternative, you could also use an existing action like sarisia/actions-status-discord, which handles formatting and edge cases out of the box.
Summary
This PR adds a GitHub Actions workflow that sends GitHub activity updates
(pushes, pull requests, and issues) to a Discord channel using a webhook.
Motivation
Keeping contributors informed of repository activity directly in Discord
helps improve collaboration and reduces the need to constantly check GitHub.
What’s Included
Related Issue
Closes #5 — GitHub to Discord Notification System (MS1: Discord Integration)