node-deploy-robot
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Dependency Status devDependency Status Build Status npm version Downloads

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

  1. Add a web hook for the repository, the trigger events should include comments of pull/merge request
  2. 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 = require("node-deploy-robot");
robot.start(app, "/", "github");

Readme

Keywords

none

Package Sidebar

Install

npm i node-deploy-robot

Weekly Downloads

0

Version

1.4.0

License

MIT

Last publish

Collaborators

  • plantain_00