Comment 1 for bug 669936

Revision history for this message
Gavin Panella (allenap) wrote :

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)