k55k32 / githook-express

github hook auto execute shell tool - nodejs express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

githook-express

Quick Start

hook.config

{
  "https://github.com/yourpoject-url": {
    "secret": "this-is-your-own-secret-you-setting-on-github",
    "events": {
      "push": "when-push-to-execute.sh"
    }
  } // ...
}

Run commond

node index.js start 9000 /root/hook.config 9000 is a port.You can setting whatever you want /root/hook.confg just the config file

and then set your github webhook payload url to http://xxx.xx.xx/github/webhook

About

github hook auto execute shell tool - nodejs express


Languages

Language:JavaScript 100.0%