Use Github webhooks with HabitRPG!
GITHABIT_PORT=4567 node ./index.js
GITHABIT_PORT
(number), which port to listen to. Defaults to4567
.
- Go to a github repository you control
- Click "Settings"
- Click "Webhooks & Services"
- Click "Add webhook"
- For the Payload URL use the following URL structure, customizing
the protocol, domain, and port, for your server, and
the API Key, and User GUID for your HabitRPG account:
http://example.com:4567/githabit?api=abc123&user=xyz789