Ubuntu Pastebin

Paste from zyga at Tue, 7 Jul 2015 00:06:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# coding: utf-8

import pprint
from launchpadlib.launchpad import Launchpad

subprojects = [
    'checkbox',
    'checkbox-gui',
    'checkbox-legacy',
    'checkbox-ng',
    'checkbox-support',
    'checkbox-touch',
    'oem-qa-checkbox',
    'oem-qa-tools',
    'plainbox',
    'plainbox-provider-canonical-certification',
    'plainbox-provider-checkbox',
    'plainbox-provider-piglit',
    'plainbox-provider-resource',
    'plainbox-provider-ubuntu-touch',
]

launchpad = Launchpad.login_with(
    "ce-qa-concern-tracker", "production")

for project in subprojects:
    lb = launchpad.projects[project]
    bugs = lb.searchTasks(tags='ce-qa-concern')
    for entry in bugs.entries:
        bug = launchpad.load(entry['self_link'])
        if bug.milestone is not None:
            print(bug, bug.milestone)
Download as text