{"id":20027535,"url":"https://github.com/finlaysawyer/github-discord-webhooks","last_synced_at":"2026-05-12T10:35:20.693Z","repository":{"id":109467482,"uuid":"583086363","full_name":"finlaysawyer/github-discord-webhooks","owner":"finlaysawyer","description":"Enhanced GitHub Workflow webhooks for Discord. Running on Cloudflare Workers and D1.","archived":false,"fork":false,"pushed_at":"2026-04-20T21:15:20.000Z","size":111,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-20T23:24:37.780Z","etag":null,"topics":["discord-webhook","github-webhooks","github-workflows"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finlaysawyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-28T18:13:05.000Z","updated_at":"2025-09-03T19:04:17.000Z","dependencies_parsed_at":"2023-09-26T11:59:24.038Z","dependency_job_id":"6b1f56eb-3562-4777-a444-9f905cbd7b5a","html_url":"https://github.com/finlaysawyer/github-discord-webhooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/finlaysawyer/github-discord-webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finlaysawyer%2Fgithub-discord-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finlaysawyer%2Fgithub-discord-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finlaysawyer%2Fgithub-discord-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finlaysawyer%2Fgithub-discord-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finlaysawyer","download_url":"https://codeload.github.com/finlaysawyer/github-discord-webhooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finlaysawyer%2Fgithub-discord-webhooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32934777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-webhook","github-webhooks","github-workflows"],"created_at":"2024-11-13T09:10:40.263Z","updated_at":"2026-05-12T10:35:20.675Z","avatar_url":"https://github.com/finlaysawyer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/finlaysawyer/github-discord-webhooks/master.svg)](https://results.pre-commit.ci/latest/github/finlaysawyer/github-discord-webhooks/master)\n\n# github-discord-webhooks\n\nA serverless function running on [Cloudflare Workers](https://workers.cloudflare.com/) and [D1](https://developers.cloudflare.com/d1/) that delivers enhanced GitHub Workflow webhooks for Discord.\n\n## Features\n\n- More information about the running Workflow, author and commit information\n- Messages are edited as workflow events come through, reducing spam:\n\n  ![demo](https://user-images.githubusercontent.com/18363677/209872272-5b7324bf-92f6-4380-b5a5-f503053ae73e.gif)\n\n# Installation\n\nIf you want to run and/or deploy this project for yourself, you will need the following:\n\n- [wrangler](https://developers.cloudflare.com/workers/get-started/guide#1-install-wrangler-workers-cli) CLI\n- Node.js LTS\n\n## 1. Create a Discord Webhook and Secret\n\nCreate a Discord Webhook in the channel of your choice following the instructions [here](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks).\n\nCopy `.dev.vars.example` to `.dev.vars` and update the `DISCORD_WEBHOOK` variable with your webhook URL. This value will be used for local development.\n\nCreate a secret for use in the deployed version:\n\n```console\n$ wrangler secret put DISCORD_WEBHOOK\n ⛅️ wrangler 2.6.2\n-------------------\nEnter a secret value: *************************************************************************************************************************\n🌀 Creating the secret for the Worker \"github-webhooks-worker\"\n```\n\n## 2. Create a D1 Database\n\n###### NOTE: D1 is currently in Alpha, the following is subject to change\n\nThis project uses a [D1 Database](https://blog.cloudflare.com/introducing-d1/) to track the state of\nthe Discord message associated with a GitHub workflow run. To generate a database for the project, use the following:\n\n```console\n$ wrangler d1 create webhook_state\n...\n✅ Successfully created DB 'webhook_state'!\n\nAdd the following to your wrangler.toml to connect to it from a Worker:\n\n[[ d1_databases ]]\nbinding = \"DB\" # i.e. available in your Worker on env.DB\ndatabase_name = \"webhook_state\"\ndatabase_id = \"48298b61-95b1-4705-b948-ebc87c434246\"\n```\n\nThen, copy the `wrangler.example.toml` file into `wrangler.toml`, and paste in the suggested snippet to create your\ndatabase binding.\n\nNext, populate your local database with the schema:\n\n```console\n$ wrangler d1 execute DB --local --file=./schema.sql\n🌀 Mapping SQL input into an array of statements\n🌀 Loading DB at .wrangler/state/d1/DB.sqlite3\n```\n\nAnd finally, populate the deployed database with the schema (by dropping the `--local` flag):\n\n```console\n$ wrangler d1 execute DB --file=./schema.sql\n🌀 Mapping SQL input into an array of statements\n🌀 Parsing 2 statements\n🌀 Executing on DB (48298b61-95b1-4705-b948-ebc87c434246):\n🚣 Executed 2 commands in 41.074951000511646ms\n```\n\nMore documentation on getting started with D1 can be found [here](https://developers.cloudflare.com/d1/get-started/).\n\n## 4. Running locally\n\nTo run the project locally, use the start npm script:\n\n```console\n$ npm run start\n\n\u003e github-webhooks-worker@0.0.0 start\n\u003e wrangler dev --persist --local\n...\n[mf:inf] Worker reloaded! (9.09KiB)\n[mf:inf] Listening on 0.0.0.0:8787\n```\n\n## 5. Deploy to Cloudflare\n\nTo deploy to Cloudflare, use the deploy npm script:\n\n```console\n$ npm run deploy\n\n\u003e github-webhooks-worker@0.0.0 deploy\n\u003e wrangler publish\n...\nUploaded github-webhooks-worker (2.00 sec)\nPublished github-webhooks-worker (1.56 sec)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinlaysawyer%2Fgithub-discord-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinlaysawyer%2Fgithub-discord-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinlaysawyer%2Fgithub-discord-webhooks/lists"}