Skip to content
Template

Post GitHub pushes to Discord

Each push posts who pushed, the repository and the commit message to your Discord channel.

The steps

  1. 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.

  2. 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.

  3. 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.