0.1.0 • Published 7 years ago

express-gogs-web-hook-listener v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

Hooks

Web Hook listener for gogs, written in nodeJS.

Usage

npm i express-gogs-web-hook-listener
var listener = require('express-gogs-web-hook-listener');

app.use('/listener', listener({name: 'sh command'}));
scrips
  • npm run start: start listen the web hook.
How to hook?

Place your scripts in scripts/. For each repo, it will auto run scripts/repo_author/repo_name/hook.sh. Make sure you write it correctly.

Notice that the hook.sh will run with the work dictionary as its own path.

Finally, you must set web hook on gogs.