Jump to content

Gerrit/ナビゲーション

From mediawiki.org
This page is a translated version of the page Gerrit/Navigation and the translation is 30% complete.

Gerrit のユーザー インターフェイスは、操作が難しい場合があります。 以下の説明文書は、Gerrit のウェブ ユーザー インターフェイスでの探し物に役立ちます。

Browsing projects

  • To view all projects, select Browse > Repositories in the top bar.
    • MediaWiki コアのソース コードは "mediawiki/core" プロジェクトにあります。
  • Use "Repository Browser > gitiles" to inspect the code base.
    • あるウィキに導入されている MediaWiki または拡張機能のバージョンのコードを確認したい場合は、そのウィキの Special:Version ページにアクセスし、対応するブランチやコミットを探してください。 次に、Gitiles のサイドバーで対応するブランチを選択します。
  • Select "Changes > View all" to see the latest commits.

Browsing code in a repository

After selecting Browse > Repositories in the top bar and selecting a code repository, select "Repository Browser > gitiles" to browse its code base.

検索クエリ

Gerrit は右上に検索フィールドを提供しています。 コミット メッセージ、作成者やレビュアー (名前やメールアドレスなど) に対する全文検索を含みます。

To search for specific values items, use keywords.

例: List of commits to all MediaWiki repos which have been, or need to be, reviewed by the Gerrit user called "jforrester":

project:^mediawiki/.* reviewer:jforrester AND -owner:L10n-bot

It excludes the L10n-bot which sometimes alters the results.

例: List of commits authored by anyone in the newcomers group and the commits passed CI (have a positive Verified label) and have either CR-1 or CR-2 (patch needs rework):

ownerin:newcomers status:open label:Verified>=1 label:Code-Review<0

Search queries via SSH

You can also run queries from the command line. This requires a developer account. Connect over ssh to execute commands of the form gerrit query ' query parameters ' on the gerrit host. The search operators are the same as in the web interface. See the query command documentation.

例: List of unreviewed commits under mediawiki:

ssh -p 29418 yourPersonalUsername@gerrit.wikimedia.org gerrit query 'status:open project:^mediawiki/.* AND NOT label:Code-Review<=-1'

For the number of unreviewed patches, see the rowCount value in the output of this command.

Performing code review

See Gerrit/Tutorial#How code is reviewed in Gerrit

Reports

Report Developer Resources