Gerrit查看器工具
项目描述
当前工具集
qgerrit – 根据一系列标准/过滤器查询不同项目的Gerrit审查。
cgerrit – 在CLI中查看(实时)Gerrit审查。
czuul – 在CLI中查看Gerrit审查的Zuul(面向管道的项目门控和自动化系统)状态。
qgerrit
使用 qgerrit 查询不同项目的Gerrit审查,基于一系列标准/过滤器
$ qgerrit -u 'harlowja' $ qgerrit -h Usage: qgerrit [options] Options: -h, --help show this help message and exit -l USER, --login=USER connect to gerrit with USER -u USER, --user=USER gather information on given USER -s STATUS, --status=STATUS gather information on given status -m MESSAGE, --message=MESSAGE filter on message -p PROJECT, --project=PROJECT gather information on given project -b BRANCH, --branch=BRANCH filter on branch -a APPROVAL, --approval=APPROVAL filter on approval value min %n [default: no filter] -k FILE, --keyfile=FILE gerrit ssh keyfile [default: attempt to use local agent] -t SORT, --sort=SORT sort order for results [default: createdOn] -n LIMIT, --limit=LIMIT Limit the number of returned results. Note that this limit is applied before sorting -d, --deps Display results as a dependency tree -f FIELD, --field=FIELD display field in results [default: 'approvals', 'branch', 'createdOn', 'lastUpdated', 'owner', 'project', 'status', 'subject', 'topic', 'url']
示例
列出所有与名为libvirt的文件接触的openstack/nova的审查请求
$ qgerrit \ -l harlowja \ -f url -f branch -f owner -f subject:100 \ -f lastUpdated -f createdOn -f approvals \ --sort createdOn \ --project openstack/nova \ libvirt
显示没有负面karma的neutron的审查,因为这些审查将被重新提交
$ qgerrit -l harlowja -a c0,v0 neutron
(感谢Daniel Berrange提供上述两个示例)
cgerrit
使用 cgerrit 实时查看出现的审查(由urwid 和 gerrit 库提供支持)
$ cgerrit $ cgerrit -h Usage: cgerrit [options] Options: -h, --help show this help message and exit -u USER, --user=USER gerrit user [default: harlowja] -s SERVER, --server=SERVER gerrit server [default: review.openstack.org] -p PORT, --port=PORT gerrit port [default: 29418] --prefetch=COUNT prefetch amount [default: 50] -k FILE, --keyfile=FILE gerrit ssh keyfile [default: attempt to use local agent] --project=PROJECT only show given projects reviews -v FILE, --verbose=FILE run in verbose mode and log output to the given file -i COUNT, --items=COUNT how many items to keep visible [default: 50] -r FILE, --record-file=FILE record file to store past events (also used for initial view population if provided)
支持的键
(S, s) - 更改排序模式(默认无)
(q, Q, esc) - 退出
(上, 下, 向上翻页, 向下翻页) - 滚动上下
示例
查看特定项目的审查(实时)
$ cgerrit -u harlowja --project=openstack/neutron
查看所有项目的审查(实时)
$ cgerrit -u harlowja
czuul
使用 czuul 查看zuul状态(由 urwid 和 requests 库提供支持)
$ czuul $ czuul -h Usage: czuul [options] Options: -h, --help show this help message and exit -s URL, --server=URL zuul server [default: http://zuul.openstack.org/status.json] --split-screens=SCREENS split screen count [default: 3] -p PIPELINE, --pipeline=PIPELINE only show given pipelines reviews -r SECONDS, --refresh=SECONDS refresh every X seconds [default: 30] --project=PROJECT only show given projects reviews --no-details skip fetching each reviews details -v FILE, --verbose=FILE run in verbose mode and log output to the given file --detail-remote=REMOTE_SERVER fetch review remotes from this gerrit server [default: https://review.openstack.org/]
支持的键
(R, r) - 强制刷新
(q, Q, esc) - 退出
(上, 下, 向上翻页, 向下翻页) - 滚动上下
(左,右) - 滚动左右
(Enter) - 显示作业详情
示例
获取项目详细信息
$ czuul --project "openstack/nova"
一次性跟踪所有OpenStack项目详情
$ czuul --project "openstack/*"
项目详情
关闭
gerrit-view-0.4.6.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2176f72e9a9c1129cd032bd6b4f6176f9c7551e59ca99f1ccb52d2306e5eb845 |
|
MD5 | 58ff2adf242a248d99cc6792b9fa4c92 |
|
BLAKE2b-256 | 10d74442b6fd9f828ef487e4fc8c0ba7f65c337de9bcdc80f997a54d691461e6 |