Hey,
I would like to write a plugin which enriches the repository list in polygerrit with custom (extracted from the actual repository information). In my case there is a file in each of the repositories, which contains some values (numbers, text), and I want to be able (if the file exists) to display these values in the Browse > Repositories list of repos. Can this be done? Alternatively, it would be OK to have a separate, dedicated page which lists all the repos which have this file along with the information. The question in this case is, how can I hook this up to polygerrit? I want it to be shown “inside” the PG UI, so that the PG header/footer is present. Can I hook the top menu somehow to achieve this?
Thanks!
Markus
--
Mit freundlichen Grüßen / Best regards
Markus Duft | Software Architect
SSI SCHÄFER | SSI Schäfer IT Solutions GmbH | Friesachstraße 15 | 8114 Friesach bei Graz | Austria
Phone +43 3127 200-575 | Fax +43 3127 200-22
Website | Blog | YouTube | Facebook
Nobody ideas on how to extend PG UI? :D
Cheers,
Markus
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
function addButton() {
var button = document.createElement('div');
button.innerHTML = "<gr-button> My Button </gr-button>"
document.getElementById('topContainer').appendChild(button);
}
if (window.location.href.includes('/admin/projects') && document.title.startsWith('Projects')) {
//Poll, addButton() if the button doesnt exist already (Poll with setInterval(() =>)
The rest you can learn by looking at /elements/gr-app.html (You can find this by being in a PolyGerrit window and right-click --> view source)
You also probably want to look at the massive JavaScript file and figure out how things work.
Good luck
Hey,
That’s at least a starting point, thanks a lot J I guess this has to improve somehow before GWT disappears…
Cheers,
Markus
--
--
To unsubscribe, email
repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey,
That’s at least a starting point, thanks a lot J I guess this has to improve somehow before GWT disappears…
Cheers,
Markus
From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com] On Behalf Of matthewwi...@gmail.com
Sent: Friday, August 24, 2018 4:36 PM
To: Repo and Gerrit Discussion <repo-d...@googlegroups.com>
Subject: Re: Custom repository information