mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
osc mergereq show: suppress requests which are deleted or declined
This commit is contained in:
parent
b4df120e5b
commit
f52458fdc5
@ -1320,7 +1320,8 @@ def get_merge_request_list(apiurl, project, package):
|
||||
for root in collection.findall('request'):
|
||||
r = MergeReq()
|
||||
r.read(root)
|
||||
requests.append(r)
|
||||
if r.state not in ['declined', 'deleted']:
|
||||
requests.append(r)
|
||||
|
||||
return requests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user