Code reviews for packaging changes

Alex Muntada alexm at alexm.org
Sun Dec 18 13:36:26 UTC 2011


+ Alex Muntada <alexm at alexm.org>:

> i'll try launchpadlib to see if i can run a cronjob

Launchpad API is amazing:

#!/usr/bin/python
#
# https://api.launchpad.net/1.0/~ubuntu-server?ws.op=getMergeProposals&status=Needs+review
#
from launchpadlib.launchpad import Launchpad

lp = Launchpad.login_anonymously('ubuntu-server code reviews', 'production')
team = lp.people['ubuntu-server']
needs_review = team.getMergeProposals(status='Needs review')
print needs_review.total_size

-- 
Alex Muntada <alexm at alexm.org>
http://alexm.org/




More information about the ubuntu-server mailing list