Template talk:Git repo
Latest comment: 4 months ago by BDavis (WMF) in topic Assumption that Phabricator remaps /r/project/... paths seems to no longer be true
Assumption that Phabricator remaps /r/project/... paths seems to no longer be true
editThe error reported at Topic:Y9j910c2d0xvcedm led me to discover that this template assumes that paths like https://phabricator.wikimedia.org/r/project/...
will be remapped to either https://phabricator.wikimedia.org/diffusion/$CODENAME
or https://phabricator.wikimedia.org/source/$REPO/
URLs as appropriate by something in the Phabricator application stack. This assumption seems no longer to be true in 2024. I think all usage of this template needs to be audited and likely changed similar to the changes I made in Special:Diff/6680353 to fix usage in Manual:Developing extensions. -- BDavis (WMF) (talk) 23:05, 30 July 2024 (UTC)
- https://phabricator.wikimedia.org/diffusion/query/advanced/ is a reasonable tool to use to figure out what
sub_url
andcallsigns
(yes, plural for no apparent reason) values will generate the right link to the expected Diffusion repository mirror. -- BDavis (WMF) (talk) 23:13, 30 July 2024 (UTC) - An alternative cleanup would be to replace the template with a
[[git:]]
interwiki link. In that case usage like{{git repo|project=operations/mediawiki-config}}
could be replaced with[[git:operations/mediawiki-config|]]
. -- BDavis (WMF) (talk) 23:28, 30 July 2024 (UTC) - After looking at most usage of the template I decided to just make it generate git: interwiki links like Template:Git file. Mischief managed. -- BDavis (WMF) (talk) 00:18, 31 July 2024 (UTC)