Page MenuHomePhabricator

Update $wgGitRepositoryViewers in MediaWiki core to link to Gitiles/Gerrit instead of Phabricator
Closed, ResolvedPublic

Description

$wgGitRepositoryViewers in MediaWiki core should create links to Gerrit's Gitiles viewer instead of Phabricator. This will affect the generation of links on Special:Version.

Event Timeline

Legoktm created this task.Feb 13 2018, 4:21 AM
Legoktm triaged this task as Normal priority.
Jayprakash12345 added a subscriber: Jayprakash12345.

will try.

$wgGitRepositoryViewers = [
  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
    'https://phabricator.wikimedia.org/r/revision/%R;%H',
  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
    'https://phabricator.wikimedia.org/r/revision/%R;%H',
];

@Legoktm will Change anywhere apart from that?

Restricted Application added a project: User-Jayprakash12345. · View Herald TranscriptFeb 13 2018, 5:35 AM

I don't think so, but I haven't fully checked.

Change 410107 had a related patch set (by Jayprakash12345) published:
[mediawiki/core@master] Update $wgGitRepositoryViewers

https://gerrit.wikimedia.org/r/410107

Change 410107 merged by jenkins-bot:
[mediawiki/core@master] Update $wgGitRepositoryViewers to use Gerrit/Gitiles instead of Phabricator

https://gerrit.wikimedia.org/r/410107

Jayprakash12345 closed this task as Resolved.Feb 14 2018, 7:00 PM