Created
March 4, 2016 02:01
-
-
Save dims/3de20e400b11af56fff7 to your computer and use it in GitHub Desktop.
Bugs marked "In Progress" but no reviews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import itertools | |
from launchpadlib import uris | |
from launchpadlib.launchpad import Launchpad | |
if __name__ == "__main__": | |
projects = [ | |
'nova', | |
] | |
lp = Launchpad.login_anonymously( | |
'dims-untriaged-bot', | |
service_root=uris.LPNET_SERVICE_ROOT | |
) | |
for name in projects: | |
project = lp.projects[name] | |
inprogress = project.searchTasks(status='In Progress') | |
for bug in itertools.chain(inprogress): | |
review = False | |
for comment in bug.bug.messages.entries: | |
if 'https://review.openstack.org/' in comment['content']: | |
review = True | |
break | |
if not review: | |
print('%s : %s' % (bug.web_link, bug.owner)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment