1.获取gerrit review 记录,写入到json文件中
ssh -p 29418 yourname@***.***.***.*** gerrit query --format=JSON status:merged before:2018-08-22 after:2018-08-11 branch:$Brach_Name > relase_note.json
2.安装jq,解析json文件
sudo apt-get install jq
3.输出csv格式的release_note
jq -r '[.id, .project, (.createdOn|todate), .owner.email, .url, .subject]|@csv' test.json > test.csv