Just to be sure, I checked and it's easy to see if a merge proposal is self-reviewed:
>>> from launchpadlib import launchpad >>> root = launchpad.Launchpad.login_with(...) >>> branch = root.branches.getByUrl(url='...') >>> merge_proposal = branch.landing_targets[0] >>> votes = merge_proposal.votes[:2] >>> self_reviewed = ( ... len(votes) == 1 and votes[0].reviewer == branch.owner)
Just to be sure, I checked and it's easy to see if a merge proposal is
self-reviewed:
>>> from launchpadlib import launchpad Launchpad. login_with( ...) getByUrl( url='.. .') landing_ targets[ 0] votes[: 2]
>>> root = launchpad.
>>> branch = root.branches.
>>> merge_proposal = branch.
>>> votes = merge_proposal.
>>> self_reviewed = (
... len(votes) == 1 and votes[0].reviewer == branch.owner)