Gerrit/Web tutorial

You can submit changes to a repository using the Gerrit website. This is a tutorial describing how to do this.

If you're logged in to Gerrit, you can also create code changes directly within the web interface. This can be useful for making small patches, or for non-developers to contribute small fixes.


 * 1) Go to https://gerrit.wikimedia.org/r/admin/repos/ and choose the code repository that you want to edit.


 * 1) Select "Commands" in the sidebar


 * 1) Click "Create Change"


 * 1) Set branch to "master" (if you don't want to use master branch you can use the other branches available for that project)


 * 1) Set the topic to something of your choosing (e.g. "copy-edit" - must be all-one-string) (optional)


 * 1) Write a description ("commit summary") in the big text field by following message guidelines. (Example)


 * 1) Click "Create"


 * 1) In the upper right corner, click the "Edit" button


 * 1) Under "Files", click "ADD/OPEN/UPLOAD" button


 * 1) Type the folder/file path for the file you wish to edit (e.g. i18n/en.json) and click "Confirm"


 * 1) Find the line(s) you want to change, and change them.


 * 1) Click "Save"


 * 1) Click "Close"


 * 1) Click "Publish edit"


 * 1) Click "Mark as active" to remove the "Work in Progress" status from your code changes

Done!

If you need to change the commit message of an existing changeset, you can use these steps:


 * 1) Go to the changeset itself. Example URL: https://gerrit.wikimedia.org/r/c/1234567890 (replace the ID at the end)


 * 1) In the "Files" section, click "Commit message"


 * 1) In the upper right corner, click the "Edit" button


 * 1) Make changes to the commit summary.


 * 1) In the upper right corner, click "Save"


 * 1) In the upper right corner, click "Close"


 * 1) In the upper right corner, click "Publish edit"