Handling pushing changes to gerrit
Fetch the commit-msg hook from gerrit
Check that the user can connect to gerrit with ssh
Run a wizard to try to configure gerrit access
If that fails, ask the user for its username If that fails, give up and suggest upload the public key
Get the username to use when using code review.
Read it from the config file, or ask it and check it works
Setup a project for code review:
If there is Remote configured for code review, using the ssh protocol, use it to fetch the gerrit commit-msg hook
Push the changes for review.
Unless review is False, in this case, simply update the remote gerrit branch
Parameters: | reviewers – A list of reviewers to invite to review |
---|
Set reviewers using gerrit set-reviewers command
Parameters: |
|
---|