https://github.com/devtin/webhook-config-manager
https://github.com/devtin/webhook-config-manager
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devtin/webhook-config-manager
- Owner: devtin
- Created: 2020-06-28T18:03:16.000Z (over 5 years ago)
- Default Branch: dev
- Last Pushed: 2023-01-06T10:07:07.000Z (about 3 years ago)
- Last Synced: 2025-07-27T19:55:51.269Z (8 months ago)
- Language: JavaScript
- Size: 392 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# webhook-config-manager
> Consolidates all webhook configs found in given
> directory in a single new one.
[](https://github.com/devtin/webhook-config-manager/actions)
Looks for all `hook.json` found in `/**/*`. Loads the content of all of them, concatenate them in on single array
and writes the output in a file `/web-hooks.json`.
## Example
Take the following file structure:
```
my-projects/
├── project-a/
│ ├── hook.json
│ ├── index.js
│ └── package.json
├── project-b/
│ ├── hook.json
│ ├── index.js
│ └── package.json
└── project-c/
├── hook.json
├── index.js
└── package.json
```
**project-a/hooks.json**
```json
[
{
"name": "project a"
}
]
```
**`/project-b/hooks.js`**
```json
[
{
"name": "project b"
}
]
```
**`/project-c/hooks.js`**
```json
[
{
"name": "project c"
}
]
```
...and the following script:
```sh
$ npx webhook-config-manager
```
**`/web-hooks.json`**
```json
[
{
"name": "project a"
},
{
"name": "project b"
},
{
"name": "project c"
}
]
```
* * *
### License
[MIT](https://opensource.org/licenses/MIT)
© 2020-present Martin Rafael Gonzalez