tools
- node-gyp build environment
development
npm i
npm run build
npm run tslint
node start.js
options
-m --mode [mode]
-p --port [port]
-h --host [host]
examples
node dist/start.js -m github -p 3000 -h 0.0.0.0
In Github, Gitlab
- Add a web hook for the repository, the trigger events should include comments of pull/merge request
- Create a robot account, and create a private access token for the account
Why no bitbucket or gogs?
Can not set private access token, and can not create comment, for now.
secure
for GIthub, create an environment variable named DEPLOY_ROBOT_ACCESS_TOKEN
, for Gitlab, create an environment variable named DEPLOY_ROBOT_PRIVATE_TOKEN
.
usage from nodejs
const robot = ;robotstartapp "/" "github";