Use Github webhooks with HabitRPG!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
index.js
package.json

README.md

GitHabit

Use Github webhooks with HabitRPG!

Running the server

GITHABIT_PORT=4567 node ./index.js

Environment variables

  • GITHABIT_PORT (number), which port to listen to. Defaults to 4567.

Using the webhook

  1. Go to a github repository you control
  2. Click "Settings"
  3. Click "Webhooks & Services"
  4. Click "Add webhook"
  5. 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