0.6.0 • Published 7 years ago

anyhook v0.6.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Anyhook

Capture web hooks from github and bitbucket and call associated bash scripts.

Installation

Install via npm:

npm i anyhook -g

Usage

Create webhook.json:

{
    "repoName": {
        "token": "8ecc7e51-b2d6-4f75-ad32-2971ca04a76f",
        "enabled": true,
        "branch": "master",
        "exec": [
            "echo \"Updated: $WEBHOOK_REPO\" > /var/log/repo-name.log",
            {
                "cmd": "bash",
                "args": ["-c", "echo \"Updated: $WEBHOOK_REPO\""],
                "stdio": "/var/log/repo-name.log",
            }
        ]
    }
}

NOTE Both commands in example are equivalent.

Then run anyhook app:

anyhook --port=8080

Now it will listen 0.0.0.0:8080 address. Webhooks URL is /api/webhook/:repoName.

License

MIT.

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

8 years ago