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

Is there a way to test configuration? #5

Closed dchersey closed 6 years ago

dchersey commented 6 years ago

Hello, thank you for putting this together! I'm running via docker on my dev server and was wondering if there's an easy way to test that it's all working? I could configure it to monitor one of my own repos and do a release but maybe there's an easier way?

Ardakilic commented 6 years ago

Hey there,

I've used https://lorem-rss.herokuapp.com/ as a custom feed while testing the application.

Something like this provided me a feed which gets updated every 10 seconds:

https://lorem-rss.herokuapp.com/feed?unit=second&interval=10

dchersey commented 6 years ago

Thanks for the quick response! I'm not using RSS ... basically using SMTP to alert whenever one of my libs is released. I need to check that it monitors GitHub properly based on my config (just a sanity check, looks pretty straightforward) and that Amazon SES doesn't stop my email due to some missing setting.

Ardakilic commented 6 years ago

This application depends on Atom feeds of GitHub actually.

So when you watch something like "Ardakilic/alerthub", I'm actually watching an RSS feed such as

https://github.com/Ardakilic/alerthub/releases.atom

in the application.

Since, In the extras field, you could add any RSS feed, I'd test my configuration (SMTP, Pushbullet settings etc. to make sure I get notified) by providing constantly updating feed to extras field like something like I provided.

Apart from that, if you want to make sure your configuration (repositories names) is all correct (like, the feeds give me http 200 and they are RSS feeds actually), an extra step could be coded, but there's not a feature like this yet.

But, the aggregator which I use in the application, "rss-feed-emitter", throws error when URL is invalid or not a feed, so It shouldn't even boot.

dchersey commented 6 years ago

Got it, thanks for the additional info. Makes sense now.

Ardakilic commented 6 years ago

Closing this for the time being. If you have further questions I'll try to help as much as I can.