def SubmitChange(self, change, dryrun=False): if dryrun: logging.info('Would have submitted change %s', (change, )) return gob_util.SubmitChange( self.host, cros_patch.FormatGerritNumber(change.gerrit_number, force_external=True))
def SubmitChange(self, change, dryrun=False): """Land (merge) a gerrit change using the JSON API.""" if dryrun: logging.info('Would have submitted change %s', change) return gob_util.SubmitChange(self.host, change.gerrit_number, revision=change.sha1)
def SubmitChange(self, change, dryrun=False): """Land (merge) a gerrit change using the JSON API.""" if dryrun: logging.info('Would have submitted change %s', change) return if isinstance(change, cros_patch.GerritPatch): rev = change.sha1 else: rev = None gob_util.SubmitChange(self.host, self._to_changenum(change), revision=rev)
def submit_inventory_change(change_number): """Set review labels and submit the inventory change. @param change_number: The change number (int) of the inventory change. """ logging.info('Setting review labels for %s.', get_cl_url(change_number)) gob_util.SetReview(INTERNAL_GERRIT_HOST, change=change_number, labels={ 'Code-Review': 2, 'Verified': 1 }, msg='Set TBR by "atest --skylab"', notify='OWNER') logging.info('Submitting the change.') gob_util.SubmitChange(INTERNAL_GERRIT_HOST, change=change_number)