Page MenuHomePhabricator

Enable backlinks from Wikimedia GitHub repositories to commits in Gerrit and tasks in Phabricator
Open, LowPublicFeature

Description

This is more of a very low priority quality of life change for GitHub mirrors but it is still worth considering nonetheless.

When browsing a Wikimedia repository on GitHub, it should be possible for one to click on references to tasks and Gerrit changes and be able to see the full commit (in other words, autolinks configured on GitHub). For example, a change like this that got merged on Gerrit and now appears on GitHub:

image.png (559×2 px, 56 KB)

From a cursory search it is possible to provide autolink references to different sources.

The two main autolinks that should be configured are:

Reference prefixTarget URLFormat of the reference identifier
T<num>https://phabricator.wikimedia.org/T<num>Numeric
I<num>https://gerrit.wikimedia.org/r/q/I<num>Alphanumeric

The benefit is improved navigation as well as easier redirection to our tools where a person browsing our repository can better understand the rationale behind changes that were implemented. Other autolinks could be configured as needed as well. But this is at least a start.

Event Timeline

Aklapper changed the subtype of this task from "Task" to "Feature Request".Aug 30 2025, 11:33 AM

@Awesome_Aasim: Thanks for reporting this. For future reference, please use the feature request form (linked from the top of the task creation page) to create feature requests. Thanks.

I agree that this would be v nice if it could be done :)

The linked GitHub doc (thanks for finding it!) says:

Autolinks are available in repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

…so I guess, whether or not it's a possibility might partially depend on whether the wikimedia GitHub org subscribes to any of those plans?


One other thing: the linked GitHub doc seems to suggest that autolinks need to be configured on a per-repository basis. It'd probably be nice if there was a way to configure them on an organization-wide basis, to avoid needing to individually enable them for all ~1.9k Wikimedia GitHub repos (and in new repos as/when they're created).
The discussion at https://github.com/orgs/community/discussions/12386 would seem to suggest that this isn't currently a possibility (although some potential workarounds have also been commented in that thread that might be worth looking into?).

I think it would be best to probably do it for the most popular repositories such as MediaWiki Core and several extensions.

Other repositories can be done later. There probably is a way to bot it with GitHub's API: https://docs.github.com/en/rest/repos/autolinks?apiVersion=2022-11-28

Autolinks are available in repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

…so I guess, whether or not it's a possibility might partially depend on whether the wikimedia GitHub org subscribes to any of those plans?

It is probably possible to get access to one of these plans because WMF is a not-for-profit and MediaWiki is open source: https://github.com/pricing and https://github.com/team

Ultimately it is up to WMF to decide whether to do this. If not, then this task will likely have no other option but to be declined.