Skip to content

Commit 02f7214

Browse files
committed
Readme
1 parent a03d336 commit 02f7214

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
1-
# github-member-log
2-
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+
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](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
32+
* Content type - application/json
33+
* Secret - the shared secret from above
34+
* Events to trigger the webhook:
35+
* Collaborator add, remove, or changed
36+
* Organizations

0 commit comments

Comments
 (0)