Skip to content

mrrobotdotapp/classic-discord-webhook

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

Discord Commit Webhook

GitHub Marketplace GitHub Sponsors License: GPL-3.0

Discord Commit Webhook

A GitHub Action that sends a clean, structured Discord notification on every push — using Discord Components v2.

Standard GitHub webhook Discord Commit Webhook
Old webhook interface New webhook interface

The default GitHub→Discord integration dumps raw commit messages into chat. This Action formats them into a structured message with clickable commit links, branch name, author, and a changelog capped at 8 entries.


Quick start

# .github/workflows/discord-push.yml
name: Discord Webhook

on: [push]

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: mrrobotdotapp/classic-discord-webhook@main
        with:
          id: ${{ secrets.DISCORD_WEBHOOK_ID }}
          token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}

Setup

1. Create a Discord webhook

In your Discord server: Server Settings → Integrations → Webhooks → New Webhook → Copy URL.

The URL looks like this:

https://discord.com/api/webhooks/{ID}/{TOKEN}

2. Add secrets to your repository

Go to Settings → Security → Secrets and variables → Actions → New repository secret:

Secret Value
DISCORD_WEBHOOK_ID The {ID} part of the webhook URL
DISCORD_WEBHOOK_TOKEN The {TOKEN} part of the webhook URL

3. Add the workflow

Create .github/workflows/discord-push.yml with the snippet from Quick start above.

Note

Need more help? See this post on DEV.


Inputs

Input Required Description
id Yes Discord webhook ID — first part of the webhook URL
token Yes Discord webhook token — second part of the webhook URL
threadId No Send the message to a specific thread in the webhook's channel

Sponsors

GitHub Sponsors

Sponsor on GitHub Buy Me a Coffee

About

This GitHub Action can produce fancy and more meaningful discord messages for your commits.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors

Languages

  • JavaScript 100.0%