Add temporary pull request threads to Discord for faster merging
This is an open-source set of functions built using NextJS and the Inngest SDK
which deploy to Inngest, allowing you to coordinate pull requests within single-use ephemeral channels in Discord.
Think of this as a free, open-source version of Axolo for discord.
This lets you:
To deploy:
The functions will be deployed, ready to run from any GitHub event as soon as the events
are triggered.
Configuring Github webhooks
That’s it! Events from Github will start flowing through to Inngest, automatically triggering
any functions that respond to those events. Now in order for our functions to succeed, we need
to give them auth access to Discord.
Configuring your Discord channels
You’ll need to make your own Discord bot to grant your functions access to your server.
DISCORD_TOKEN. Be sure to prefix the bot token with Bot: Bot your-token.DISCORD_GUILD_ID.DISCORD_CHANNEL_ID.See .env for an example of the secrets to save.
This repo uses Inngest to receive events from GitHub via webhooks.
The functions in this repo are event-driven: they declaratively specify the events that
trigger them within their inngest.json files.
Each time Inngest receives an event, it checks which functions should run and automatically
executes the serverless function.