On Sun, Apr 19, 2020 at 08:42:47AM -0400, Neal Gompa wrote:
Hello,
One of the things I like about Pagure is that the commit list view
shows you the branch and tag refs associated with commits, even those
from not in your branch.
For example, the pagure package Git repo shows the top commit in
master also in other Fedora and EPEL branches too[1].
What I was wondering is how easy it would be to extend this to also
look for other refs, enumerate them, and create links. The main
use-case would be when Gerrit is paired with Pagure. Gerrit stores
changes as refs in the repo in the refs/changes namespace.
The formula of the changes ref mapping to a Gerrit change review is as
follows: refs/changes/56/123456/7 -> https://<hostname>/#/c/123456/7
What I'd like to do is make it so those show up in the commit view as
blue refs (blue being Gerrit's color on the website) that when you
click them, you are taken to Gerrit to see the change review page. I
think this extension would make sense as a plugin rather than being
part of the core, but I could go either way on that...
I understand that doing this is potentially a lot more expensive,
since now Pagure would have to *read* all these refs, but the use-case
is interesting. :)
Ideally, this would be paired with the RFE for linking Change-Ids[2].
I do like the idea but considering every PR is also a ref, I fear this could
clutter the UI very quickly.
Making this configurable seems also be bit tricky as I guess we would have offer
the choice of the color, of the refs of interest and so on.
Doable, but potentially a little tricky.
The support for Change-Ids seems easier and simpler.
Pierre