Put a Discord webhook URL in the path of this one and point a GitHub webhook at it: https://cleanhook.sh/https://discord.com/api/webhooks/ID/TOKEN/github.

GitHub events arrive as one card per pull request or commit, edited in place as that thing moves; set a secret on the GitHub webhook and add ?secret=... to the URL to have signatures checked.