Gerrit/Tutorial/tl;dr/uk

Create account

 * 1) Встановити та налаштувати Git.
 * 2) Створити ключ SSH (для Gerrit достатньо кроків 1-3).
 * 3) Створити обліковий запис розробника Вікімедіа. Увійти й додати свій відкритий ключ до gerrit.
 * 4) Додати свій відкритий ключ також до LDAP за допомогою [$url інтерфейсу toolsadmin] або Special:NovaKey на wikitech.

 Отримати код:

Clone the repository using the command in the repository browser (e.g. https://gerrit.wikimedia.org/g/mediawiki/core). You can find these on the list, or from the extension infobox on mediawiki.org. The most commonly cloned repositories are:

Для ядра MediaWiki:

Або, для розширення:

MediaWiki skins:

Write your patch
Now write your code. When the code is ready:
 * When working with Gerrit, do this only once per branch. To fix mistakes, use.
 * Review your patch to confirm what you are submitting to us. Press "q" to quit.
 * This pushes to Gerrit and creates a change request. If you receive an error and have previously installed the older "gerrit-tools" program, install "git-review" instead.

You are encouraged to invite one or two maintainers as reviewers on your change. After creating the change request, the  will have printed the URL for you change request. You can also find [ https://gerrit.wikimedia.org/r/dashboard/self your changes] through your Gerrit dashboard. On the change page, under "Reviewers", click the "Add Reviewer" pencil button. Write a reviewer name in the input box. If you don't know who to invite for reviewing, check the maintainers list for the component you've modified, or ask on.

Update your patch
If a reviewer asks you to make changes, amend your commit as follows:


 * e.g. 1234 in https://gerrit.wikimedia.org/r/1234. This downloads and checks out the change request from Gerrit.
 * Edit the source files to make your changes.
 * You can run this as many times as you like. When editing the commit message, leave the "Change-Id" line intact. }}
 * This updates your change request in Gerrit, with a new patch set version reflecting your change, and automatically notifies the subscribed reviewers.