Page MenuHomePhabricator

GitHub repository descriptions should point directly to the Gerrit projects
Closed, DuplicatePublic

Description

Currently, for example for https://github.com/wikimedia/analytics-quarry-web the description reads:

Github mirror of "analytics/quarry/web" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

(BTW, missing ")".) This means I need to open a tab with Gerrit, click on "Project", "List", type in "analytics/quarry/web" as filter, and then click on the project to receive information how I can clone the repository for reviews with Gerrit, etc. If I'm a newcomer, going through https://www.mediawiki.org/wiki/Developer_access probably adds quite some time to that.

Instead, the description should read:

GitHub mirror of https://gerrit.wikimedia.org/r/#/admin/projects/analytics/quarry/web – please see https://www.mediawiki.org/wiki/Developer_access for contributing. Thanks!

This removes possible confusion about what "Gerrit" and "actual code" mean and points directly to the source.

Event Timeline

scfc created this task.Dec 19 2016, 6:02 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 19 2016, 6:02 AM
Paladox added a subscriber: Paladox.
greg added a subscriber: greg.Dec 19 2016, 6:12 PM

Where is this text managed?

demon added a subscriber: demon.Dec 19 2016, 6:26 PM

Where is this text managed?

It isn't. A long time ago when I had the plugin that auto-created Github repos for us, it was hardcoded there. Now it's mostly copy+pasted, if it's done at all.

greg triaged this task as Low priority.Dec 19 2016, 6:29 PM
greg removed a project: Gerrit.

uuuuurrrrrrgggggghhhhhh

So it's not an issue in Gerrit (removing that project).

If someone is bored over the holidays....

scfc added a comment.Dec 19 2016, 8:32 PM

https://developer.github.com/v3/repos/#edit seems to be the relevant API. Might be interesting to come up with a maintenance script that tests/sets has_* and other parameters as well.

I spent about an hour around lunchtime today, I rewrote my plugin from days of yore :)