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
Fix the reviewer list.
Complete the email addresses with the committer email’s domain name when just the reviewer username is given, using the domain name of the ‘user.email’ setting from the given git.
Returns: | the list of reviewers’ email |
---|
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 |
---|