diff --git a/NEWS b/NEWS index 94e4eb12..ca153045 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,7 @@ - add "maintenancerequest" command to request a maintenance incident from maintenance team - add "releaserequest" command run a maintenance update release process (for maintenance team only) - allow to force the storage of project meta data (to ignore depending repositories for example) + - "my requests" is showing requests with open reviews also now 0.130 - new "revert" command to restore the original working copy file (without diff --git a/osc/commandline.py b/osc/commandline.py index 93cc9a79..d0f028c4 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5312,14 +5312,30 @@ Please submit there instead, or use --nodevelproject to force direct submission. if list_requests: # try api side search as supported since OBS 2.2 try: + requests = [] + # open reviews u = makeurl(apiurl, ['request'], { 'view' : 'collection', - 'state': 'new', + 'states': 'review', + 'reviewstates': 'new', + 'roles': 'reviewer', + 'user' : user, + }) + f = http_GET(u) + root = ET.parse(f).getroot() + for node in root.findall('request'): + r = Request() + r.read(node) + requests.append(r) + # open requests + u = makeurl(apiurl, ['request'], { + 'view' : 'collection', + 'states': 'new', + 'roles': 'maintainer', 'user' : user, }) f = http_GET(u) root = ET.parse(f).getroot() - requests = [] for node in root.findall('request'): r = Request() r.read(node)