Search code examples
sshgit-mergegerritreviewgit-merge-conflict

How can we get the READY TO SUBMIT status of gerrit review via command line?


I want to get the list of all the reviews which are in READY TO SUBMIT state via command line (may be use some script to automate) and merge all those reviews.


Solution

  • Use the gerrit query SSH command like the following example:

    ssh -p 29418 USER@GERRIT-SERVER gerrit query is:submittable
    

    See more info about search queries on Gerrit documentation here.