قالب:مراجع-غيريت

This page is a translated version of the page Template:Gerrit-reviewer and the translation is 100% complete.

[[gerrit:q/owner:%22%7B%7B%7B1%7D%7D%7D%22|{{{1}}}]]

توثيق القالب

Examples:

  • {{ Gerrit-reviewer/ar|Gerrit username}}Gerrit username
  • {{ Gerrit-reviewer/ar|Gerrit username|file_regexp=<nowiki>\.(txt|php)$</nowiki>}}Gerrit username (يلتزم الملف فقط حيث واحد على الأقل من الملفات التي تغيرت تماثل /\.(txt|php)$/)
    ملحوظة ملحوظة: Don't forget to use <nowiki> tags for the file_regexp parameter, if you want to have template-specific characters in the regexp, such as |
  • {{ Gerrit-reviewer/ar|Gerrit username|file_regexp=<nowiki>^includes/.+\.php$</nowiki>|match_all_files}}Gerrit username (يلتزم الملف فقط حيث جميع من الملفات التي تغيرت تماثل /^includes/.+\.php$/)
  • {{ Gerrit-reviewer/ar|Gerrit username|file_regexp=<nowiki>^includes/.+\.php$</nowiki>||only_match_new_files}}Gerrit username (يلتزم الملف فقط حيث واحد على الأقل من الملفات الجديدة تماثل /^includes/.+\.php$/)

Add this template to [[Git/Reviewers]] to be automatically added as a reviewer on Gerrit changes that match certain criteria

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Gerrit username1

Your username on gerrit.wikimedia.org

Stringrequired
22

If you set this to match_all_files, the file regexp must match all changed files in the commit, not just one of them

Stringoptional
33

Set this to only_match_new_files to make the file regexp only look at new files created by the commit

Unknownoptional
File path regexpfile_regexp

Only subscribe to commits where at least one of the files matches this regexp. Don't forget to wrap this in <nowiki> tags if you use | or other special characters

Example
<nowiki>\.(txt|php)$</nowiki>
Stringsuggested