You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
5. Use http://IP:PORT/%name% as hook url in github, gitlab, etc.
18
+
1. Create file {{name}}.json with config object in dir config/ below about this).
19
+
2. node app.js IP:PORT (IP non-required, but if you filled port only the command must looks like `node app.js :PORT`). Defaults `IP='0.0.0.0';PORT=6666`.
20
+
3. Use `http://IP:PORT/{{name}}` as hook url in github, gitlab, etc.
21
21
22
-
Config parameters:
22
+
Configuration:
23
23
===
24
-
* user - System user, from which will ne performed commands
25
-
* path - root path for project
26
-
* commands - Shell commands, which will be performed after receive hook
27
-
* refs - Non-required, if ref not match, any operation will not be performed. String or Array of Strings which be substituted to ref.match()
24
+
It is a json file with json object inside in directory config/. This configuration used every time when hook has been recieved.
25
+
26
+
Configuration parameters:
27
+
===
28
+
*`user` - System user, from which will be performed commands
29
+
*`path` - root path for project, shell commans has been executed there
30
+
*`commands` - Shell commands, which will be performed after recieve hook
31
+
*`refs` - Non-required, if ref not match, any operation will not be performed. string or array of strings which be substituted to ref.match()
28
32
29
33
30
34
TODO
31
35
===
32
-
*Think about string-command executing
33
-
* require in config with shell commands results
36
+
*Commands string instade of array.
37
+
*cfg.require parameter with applying the cfg.commands results
0 commit comments