https://github.com/mutoe/webhooks
Webhooks cli
https://github.com/mutoe/webhooks
Last synced: about 1 year ago
JSON representation
Webhooks cli
- Host: GitHub
- URL: https://github.com/mutoe/webhooks
- Owner: mutoe
- License: mit
- Created: 2019-10-17T09:23:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T14:43:48.000Z (about 3 years ago)
- Last Synced: 2025-03-09T09:37:13.934Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webhooks

[Chinese version](/README_cn.md)
A webhook can do anything you want
> Currently under development, support Github webhook API script generation
## Usage
```bash
npm i -g @mutoe/webhooks
# or
pnpm i -g @mutoe/webhooks
webhooks
# It will then generate a listener.js and pull.sh in your current directory,
# and then you can edit pull.sh to pull your repository, for example
# The following line will switch to `/path/to/your/repo` and then
# execute `git pull`
#
# sed -i "$ a\cd /path/to/your/repo\ngit pull" pull.sh
# Next, run
node listener
# or
pm2 start --name webhooks listener.js
# Awesome tool!
```