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

Support for Gitea #88

Open bryanpedini opened 2 months ago

bryanpedini commented 2 months ago

Hi,

It would be nice to add support for Gitea/Forgejo instances as they should be pretty similar to GitHub/GitLab as those are the ones used to start and base the development of both G/F.

Thx~

Ardakilic commented 2 months ago

Hello, does Gitea/Forgejo have RSS/Atom feed for commits, tags etc? If so, could you please share some examples? I'll try to look what can I do.

bryanpedini commented 2 months ago

Yes they seem to have: https://gitea.com/gitea/gitea-mirror.rss Forgejo too (IIRC Codeberg runs Fj): https://codeberg.org/Codeberg/pages-server.rss Fj was a soft (now a hard) fork of Gt as well, so I wouldn't imagine it differing that much

Ardakilic commented 2 months ago

I'm not sure the given RSS feeds are the desired ones.

For example, when you check pages-server.rss, it shows issues etc: https://rss.app/feed/e688c4GhO2q0wvdb?utm_source=rssviewer&utm_medium=website

And the gitea one, it merges tags and releases into one feed: https://rss.app/feed/6JXqPl09jk1U97RY?utm_source=rssviewer&utm_medium=website

I tried

https://gitea.com/gitea/gitea-mirror/issues.rss https://gitea.com/gitea/gitea-mirror/commits.rss https://gitea.com/gitea/gitea-mirror/commits/branch/main.rss

but there was no luck.

I guess tags and releases could be fetched explicitly as:

https://gitea.com/gitea/gitea-mirror/tags.rss https://codeberg.org/Codeberg/pages-server/releases.rss

However, I need explicit feeds for issues and commits to implement.

If available, could you please provide rss urls to get only commits.rss and only issues.rss somehow?

Given they are available, I'll see what I can to. Otherwise I can always try to implement these generic RSS feeds, but I'm not sure if they are desired feeds.