Kredits:Development

From Kosmos Wiki
Jump to navigation Jump to search

This page contains helpful hints for developing and contributing to Kredits software, and which don't fit in any other README or documentation.

hubot-kredits

How to run/test locally

(Gitea hooks specific to Kosmos; replace with your own hooks for other projects.)

  1. In hubot-kredits dir: npm link
  2. In hal8000's (or any hubot repo) dir: npm link hubot-kredits
  3. In hal8000’s run.sh: add local DAO address to env var near bottom of script
  4. ./run.sh and npm run ngrok (the former gives you an interactive console/chat room, the latter catches hooks to hubot-dev.kosmos.org on your machine)
  5. Activate dev webhook in https://gitea.kosmos.org/org/kosmos/settings/hooks/4
  6. Re-open and close e.g. https://gitea.kosmos.org/kosmos/test-one-two/issues/5 (which is blacklisted in prod) in order to create contributions