Gerrit 简明教程

Gerrit - Editing via the Web-Interface

你可以在登录到 Gerrit 帐户后通过 Web 界面编辑项目,如下所示。

You can edit the project via the web interface after logging in to the Gerrit account as shown in the following steps.

Step 1 − 单击此 link 转到 Gerrit 仪表盘。你将获得以下屏幕截图。

Step 1 − Go to Gerrit dashboard by clicking this link. You will get the following screenshot.

gerrit view changes in gerrit1

Step 2 − 接着,单击“Project (项目)”列下指定 mediawiki/extensions/examples 的链接。

Step 2 − Next click the mediawiki/extensions/examples link specified under Project column.

Step 3 − 单击工具栏中的“General (常规)”链接,如下面屏幕截图所示。

Step 3 − Click the General link in the toolbar as shown in the following screenshot.

gerrit editing via web interface

Step 4 − 当你打开“General (常规)”链接时,它会显示下图所示屏幕截图。

Step 4 − When you open the General link, it will show a screenshot as the following.

gerrit editing via web interface1

Step 5 − 单击“Create Change (创建更改)”按钮,它将打开一个弹出的窗口,其中包含一些详细信息,如下面屏幕截图所示。

Step 5 − Click the Create Change button and it will open a popup window with some details as shown in the following screenshot.

gerrit editing via web interface2

Step 6 − 输入信息,然后单击“Create (创建)”按钮。

Step 6 − Enter the information and click the Create button.

创建更改后,它将显示如下图所示的信息。

After creating the change, it will display the information as shown in the following screenshot.

gerrit editing via web interface3

Step 7 − 单击“Edit (编辑)”,然后单击“Add (添加)”。现在选择你要编辑的文件。在此处我们选择了文件 Example/i18n/en.json

Step 7 − Click Edit and then click Add. Now select the file you want to edit. Here we have selected the file Example/i18n/en.json.

gerrit editing via web interface4

当你打开该文件时,它将显示如下面屏幕截图所示的 json 数据。

When you open the file, it will show the json data as specified in the following screenshot.

gerrit editing via web interface5

Step 8 - 单击“保存”,然后单击“关闭”按钮。

Step 8 − Click Save and then click the Close button.

Step 9 - 最后单击“发布”按钮发布已编辑的文件

Step 9 − Finally click the Publish button to publish the edited file

gerrit editing via web interface6

Step 10 - 您可以通过单击“提交消息”链接来更改提交消息,如下面的屏幕截图所示。

Step 10 − You can change commit message by clicking the Commit Message link as shown in the following screenshot.

gerrit editing via web interface7

Step 11 - 按键盘上的 e 键并添加一些额外信息(如果您愿意),单击“保存”,然后单击“关闭”按钮。

Step 11 − Press e on the keyboard and add some extra information, if you wish to Click Save and then click the Close button.

gerrit editing via web interface8