gitbucket / gitbucket

A Git platform powered by Scala with easy installation, high extensibility & GitHub API compatibility
https://gitbucket.github.io/
Apache License 2.0
9.13k stars 1.25k forks source link

Exporting the GitBucket News Feed elsewhere, on any new change? #3254

Open sdbbs opened 1 year ago

sdbbs commented 1 year ago

I have an installation of GitBucket on a NAS. I would like to export the News Feed - and only the News Feed - somehow, so it is accessible to an external public server.

It would have been really nice if I'd be able to export the News Feed as a single, self-contained, static .html file with all of the CSS built-in, so I get more-less the same design as on the original GitBucket instance - as an illustration, here is a screenshot of isgb.otago.ac.nz/infosci (since I cannot find a public demo of GitBucket anymore):

image

However, there is also an Atom feed (the orange button in the upper right corner of the screenshot), available at the gitbucket.url/activities.atom endpoint - and this would be much easier to export as a standalone file. However, as far as I can see, the activities.atom content is dynamically generated - so in any case I'd have to initiate a download from the endpoint, in order to export/save it as a file.

Also, let me note, that News Feed notifies pushes of commits by any user to any branch, as well as creation/deletion of branches (and probably other things, such as modifying issues).

So, I would basically like a new version of the activities.atom XML file exported, every time there is a relevant change (commits, or changes of branches) pushed to the GitBucket; either:

Are there any options that would allow me to do this?

I looked through https://gitbucket-plugins.github.io/ and:

So, do I have any options to achieve this kind of export in GitBucket currently - and if so, what options do I have?

takezoe commented 1 year ago

Rather, using Web Hook may be better if you only need new events. Though it doesn't send contents of Atom feed, it can send notifications to other servers when changes happen on GitBucket.