https://github.com/intellectualsites/discord-webhook
https://github.com/intellectualsites/discord-webhook
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/intellectualsites/discord-webhook
- Owner: IntellectualSites
- License: apache-2.0
- Created: 2023-06-17T11:14:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T05:51:54.000Z (about 2 years ago)
- Last Synced: 2024-04-14T00:32:17.004Z (about 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# disgit
A Cloudflare Worker which provides better GitHub->Discord webhook integration than the built-in Discord webhook executor.
You can use this Cloudflare worker by following the steps after clicking the button below
[](https://deploy.workers.cloudflare.com/?url=https://github.com/JRoy/disgit)
This repository is based on [JRoy/disgit](https://github.com/JRoy/disgit), deploying to IntellectualSites' CF workers via GitHub actions.
You can also deploy this using docker/docker-compose by cloning this repo and running
`docker compose up --build -d`. The worker will be started on port 8080.
## Environment Variables
digit has the following optional environment variables that you can use to customize your instance;
- `IGNORED_BRANCHES_REGEX` - A regex pattern for branches that should be ignored
- `IGNORED_BRANCHES` - A comma seperated list of branches that should be ignored
- `IGNORED_USERS` - A comma seperated list of users that should be ignored
- `IGNORED_PAYLOADS` - A comma seperated list of webhook events that should be ignored
## Supported Events
The following webhook events are supported as of now;
* [check_run](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#check_run)
* [commit_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#commit_comment)
* [create](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#create)
* [delete](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#delete)
* [deployment](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment)
* [deployment_status](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_status)
* [discussion](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#discussion)
* [discussion_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#discussion_comment)
* [fork](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#fork)
* [gollum](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#gollum) (wiki)
* [issue_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issue_comment)
* This event also sends pull request comments...*sigh*
* [issues](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#issues)
* [package](https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#package)
* [ping](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#ping)
* [pull_request](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request)
* [pull_request_review](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review)
* [pull_request_review_comment](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_comment)
* [push](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#push)
* [release](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#release)
* [star](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#star)
* ...feel free to contribute more that suit your needs!