Decorating project and repository list

I’m writing a plugin that will provide additional metadata that would be important to be visible in the project and repository listing. Sadly, neither of these have extension points for extras (whereas pull request listning and branch listing does)

The only thing that comes to mind right now is to listen to the events that update the table, for example, the react component FilterableRepositoryTable and then decorate the table via javascript.

However, I’m not able to find any easy way to listen to these events, as the Bitbucket javascripts seems to be a mix of React + Jquery + pure javascript + Backbone… and in this case it’s a react component that doesn’t seem to fire off any event I can listen to.

Any suggestions would be appreciated.

2 Likes

Hey, @jan apologies for the late response. Bitbucket Server does support extending the project and repository page. You can use the discovery URL to show all the plugin points e.g.:

https://<your Bitbucket Server instance>/projects?web.items&web.panels&web.sections
https://<your Bitbucket Server instance>/projects/<project name>?web.items&web.panels&web.sections

For the repo listing page, you can use the bitbucket.web.project.overview.banner plugin point and for project listing page we have bitbucket.web.project.list.banner.

More information about Web Fragments and JS APIs can be found here:

Let me know if you have any more questions.

Thanks,
Maciej

2 Likes

Hey @madamczak

Please note I asked for extension points in the listings. This is not available. I worked around this by using a javascript listener. This seems to behave properly but is of course not as nice as if an extensionpoint existed.

See attached the addition of the ARCHIVED lozenge.

2 Likes