Module:Gerrit/doc
This is a documentation subpage for Module:Gerrit. It contains usage information, categories and other content that is not part of the original Module page. |
This is a module for linking to Gerrit, which is the code hosting site we use for MediaWiki and related projects.
A changeset
[edit]A changeset is easy - for a specific ID, {{#invoke:Gerrit|link_automatic|55555}}
will do the trick. You can also use the Change-Id, e.g. {{#invoke:Gerrit|link_automatic|I789abcdef}}
, which will use Gerrit's search function to make the link. These will all show up as interwiki links, using the :gerrit prefix that is defined on MediaWiki.org. If you're exporting this module, be sure to set up that interwiki prefix on your wiki, too.
Search results
[edit]If you just link to a string, e.g. {{#invoke:Gerrit|link_automatic|some string}}
, the module will URL-encode it and link to the search page. You can also specify more exact constraints, as in {{#invoke:Gerrit|link_automatic|owner=MarkTraceur|project=mediawiki/extensions/UploadWizard}}
, to make for more readable module invocations and link texts.