Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
webhooks.mcbe.wtf ================= A service used to recieve push events from GitHub and send a friendly message through a Discord webhook. Goal ---- GitHub can't filter by itself which branches we want to recieve push events, and as such we need to write an application to do this for us. Development ----------- Use deno v2.0.0 or higher. Deployment ---------- Deployment can be done through the github workflow, which will publish the project to Deno Deploy. The required environment secret variables are: - GH_WEBHOOK_SECRET * A secret that GitHub and this application must share - GH_WEBHOOK_REF - What git ref to listen to. For example "master" - DISCORD_WEBHOOK_URL - What discord webhook URL to send the message to In addition for the deployment process the following environment secret variables are required: - DENO_DEPLOY_ORGANISATION_NAME * Organisation name. This is configured when setting up the account for the first time, or when a new organisation is added. - PROJECT_NAME * What the project will be called in deno deploy. Must be unique per organisation. - DENO_DEPLOY_TOKEN * An account token which will be used to deploy.