You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloudflare Worker to send GitHub user changes to Slack
1
+
# GitHub Member Log
2
+
3
+
A simple Cloudflare Worker to receive a [GitHub Webhook](https://docs.github.com/en/webhooks) and
4
+
send member/collaborator add/remove events to Slack.
5
+
6
+
## Deploy With Cloudflare
7
+
8
+
Requires the following:
9
+
10
+
* GitHub organisation with admin access to set up webhooks
11
+
* Slack workspace with an incoming webhook to post to a channel
12
+
* A [Cloudflare](https://www.cloudflare.com/) account
13
+
14
+
[](https://deploy.workers.cloudflare.com/?url=https://github.com/answerdigital/github-member-log)
15
+
16
+
## Manual Deploy
17
+
18
+
Clone this repository and set the following environment variables:
19
+
20
+
*`CF_ACCOUNT_ID` - the Cloudflare account ID from your dashboard
21
+
*`CF_API_TOKEN` - a [Cloudflare API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/) - use the "Edit Cloudflare Workers" template
22
+
*`API_SECRET` - the shared secret that will be used to sign the GitHub payloads
23
+
*`SLACK_WEBHOOK` - the Slack incoming webhook URL
24
+
25
+
You can also change `wrangler.toml` to alter the worker name or define custom routes.
26
+
27
+
## GitHub Setup
28
+
29
+
Create a Github webhook and set the following settings:
30
+
31
+
* Payload URL - your worker URL (e.g. https://github-member-log.ACCOUNT.workers.dev) or custom route
0 commit comments