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

Where is this text managed?

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....

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 :)