Github Invitation
Send invitation your private github repo
This module we are also using for this website, to grant the access for paid users to our private github repo.
To set up:
- The first you need to get
GITHUB_AUTH_TOKEN
by go toPersonal access tokens
, chooseToken (classic)
and click toGenerate new token (classic)
:
- Select
repo
scopes like this:
- You will get the key with
ghp_
prefix. Paste into your.env
along with therepo path
(github_username/repo_name
) for examplezapstackdev/NextZapStack
:
- Then go to your repo webhooks settings page for example
https://github.com/zapstackdev/NextZapStack/settings/hooks
to add a webhook with config like this:
If you just want to run on local development at the moment, you can use ngrok
to get an external domain for webhook Payload URL
config.
To use ngrok
(exposing the local server to an external url), run command like this: