This creates a webhook endpoint that is intended to be triggered by a GitHub webhook on the repository that is being tracked. When the webhook fires, this script will recalculate the Cred scores for GitHub contributors in the repo,
- Copy
.env.template
to.env
and fill in the values with the deployed OpenOracleFramework contract address and the private key of the authorized feed signer. - In the parent directory,
git clone https://github.com/zenithlight/sourcecred
(cd sourcecred/packages/sourcecred; yarn build)
yarn add file:../sourcecred/packages/sourcecred/
npm install
echo "{}" > cached-identities.json
node index.js
- If you want to point the oracle to a different repo than
zenithlight/credspot-demo