当前位置:网站首页>Gerrit Code Review Setup
Gerrit Code Review Setup
2022-06-22 05:24:00 【alex_mianmian】
There are three roles in the Gerrit Code Review system.
Project Owner – Repository Owner
Change Owner – developers who can submit changes
Reviewers – who reviews changes
1. For Project Owner, he/she needs to configure the project access permission.
On the Gerrit Web Page, click 'Projects' -> 'Access' -> 'Edit' , then you can modify the project access permission. You can add reviewer and submitter.

And for project owner, he/she should setup .gitreview file for the repository
>git clone your_git_repository
>cd your_git_repository_folder
>vi .gitreview
add following contents:
[gerrit]
host=your_gerrit_server
port=your_gerrit_server_port
project=your_project
defaultbranch=master>git add .gitreview
>git commit
>git push origin master
2. For Change Owner, he/she can modify code, then commit , then start review
But before these operation, change owner need install git-review by apt system. And add gerrit as remote ref.
>sudo apt install git-review
>git clone your_git_repository
>git remote add gerrit your_git_repository
after you modify your file.
>git add your_modify_file
>git commit -m "your comments"
>git review
Then on the Gerrit Web Page, change owner can find the change(commit) on 'My' -> 'Changes' -> 'Outgoing reviews'.
Click the change , then change owner can choose reviewers.
After choose reviewers, change owner just need wait for the 'submit' button show up. When will it show up? After at least one reviewer score +2 to this change.
After the 'submit' button show up, change owner can click it to finally push the change to GIT repository.
3. For reviewers, he/she will find the change on 'My' -> 'Changes' -> 'Incoming reviews'.
Click the change, then reviewer can review the diff of this change. After review, reviewer needs to click 'reply' to input comments and score the change.

After click 'Post' button, reviewer finishes his/her job. Remember, change needs at least one +2 score to show 'submit' button on change owner web page.
边栏推荐
- Zset type of redis
- 在线文本代码对比工具
- rambbmitmq推送方
- Literacy of C language concept knowledge (supplemented and updated from time to time)
- 新手开店货源怎么找,怎么找到优质货源?
- Yarn application submission process
- Force buckle 33 [search rotation sort array]
- Monorepo silk slide methodology: reference module hot update
- DTS迁移秘籍-SQLSERVER篇
- Jedissentinel tool class
猜你喜欢

Does the air valve perform the en 1634-1 fire resistance test for 4 hours?
Please, use three JS make 2D pictures have 3D effect cool, OK

记本地项目启动报错:无效的源发行版: 8

How much is London gold

《MATLAB 神经网络43个案例分析》:第28章 决策树分类器的应用研究——乳腺癌诊断

《MATLAB 神经网络43个案例分析》:第29章 极限学习机在回归拟合及分类问题中的应用研究——对比实验

2022 Shanxi secondary vocational group "Cyberspace Security" event module b- web page penetration

使用选择法对十个整数进行排序

毕业季 | 新的开始,不说再见

What problems will be encountered during the implementation of MES management system
随机推荐
通达OA漏洞分析合集
Geographic location type of redis
Kubernetes -- setting up an environment using minicube
Rambbmitmq consumer
Privatized lightweight continuous integration deployment scheme --05- continuous deployment service -drone (Part 1)
What problems will be encountered during the implementation of MES management system
DTS migration script Oracle
中小企业签署ERP合同时,需要留意这几点
Zset type of redis
P1061 [NOIP2006 普及组] Jam 的计数法
TIDB-升级版本
关于二分一些模板
2022深圳福田区专精特新小巨人企业申报条件,补贴50万
Rétroaction sur la remise des diplômes! Tous les contributeurs de la communauté Apache Doris sont ici pour recevoir des cadeaux!
Shenzhen Nanshan District specialized special new small giant enterprise declaration index, with a subsidy of 500000 yuan
Graduation season | a new start, no goodbye
SQL分类,用户属性
Small and medium-sized enterprises should pay attention to these points when signing ERP contracts
A piece of code to solve the problem of automatic disconnection of Google colab
企业如何把ERP项目自动施行?