Post GitHub pushes to Discord
Each push posts who pushed, the repository and the commit message to your Discord channel.
GitHub pushes to DiscordTemplate
StartTriggerWhen GitHub sends a webhook
Step 1Filter
Step 2Post to Discord
Trigger
When GitHub sends a webhook
Step 1
Filter
Step 2
Post to Discord
The steps
Trigger
When GitHub sends a webhook
Sent by GitHub: add the URL in the repository's Settings → Webhooks with a secret, and paste the same secret in Foliot.
Step 1
Filter
Only continues for a push with a commit: GitHub's ping when you add the webhook, and deleting a branch, have none.
Step 2
Post to Discord
Posts to Discord. Add your channel's webhook (Channel settings → Integrations → Webhooks).
What you need
- A GitHub repository you can add a webhook to.
- A Discord channel where you can make a webhook.
- A Foliot account (free).
Questions
- Does this need a Discord bot?
- No. It posts through a channel webhook, so there's no bot to invite or host.
- What does GitHub need to send?
- Set the content type to application/json and choose "Just the push event". The secret you type there is the one to paste in Foliot.