Query on extending the commit list view?
by Neal Gompa
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].
[1]: https://src.fedoraproject.org/rpms/pagure/commits/master
[2]: https://pagure.io/pagure/issue/4812
--
真実はいつも一つ!/ Always, there's only one truth!
3 years, 11 months