Ardakilic / alerthub

AlertHub is a simple tool written with NodeJS to get alerted from new GitHub and GitLab repository events.
MIT License
202 stars 12 forks source link

Feature request: hooks #4

Closed Jekotia closed 2 years ago

Jekotia commented 6 years ago

It would be nice if, when alerthub detects a new release, it would run a specified hook.

For example, when an update to alerthub is detected, it runs a shell script containing the webhook to trigger a build on dockerhub, rebuilding jekotia/alerthub with the latest version of alerthub

Ardakilic commented 6 years ago

Hey there,

Thanks for the request! I'll look for a way to implement this. For the time being, if that works for you, you can use the unified RSS option of AlertHub, and bind it to IFTTT etc. for a formulae like "If a new item comes to AlertHub's RSS feed, do 'Maker' + Make a web request + POST request to an endpoint etc." to trigger the Docker build.

Would running a shell script suffice, or would you prefer to provide the contents of the script into config ?

Jekotia commented 6 years ago

I think running the script would be best.

I initially was thinking of webhooks, and then my mind wandered to git commit hooks as I wrote the request and realised it would be better to go the script route. I feel that it provides the greatest flexibility, since you can still easily do a webhook, but can also do more if you so wish.

Ardakilic commented 2 years ago

I believe this may be obsolete with #37