1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 01:06:15 +01:00

- support --interactive-review option when running "osc rq list <project>"

iterates over all requests for the given project and calls "request_interactive_review"
This commit is contained in:
Marcus Huewe 2010-09-17 21:03:52 +02:00
parent cb7620fc54
commit de8b33f29d

View File

@ -1755,6 +1755,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
## FIXME: date filtering should become implemented on server side
for result in results:
if days == 0 or result.state.when > since or result.state.name == 'new':
if (opts.interactive or conf.config['request_show_interactive']) and not opts.non_interactive:
try:
request_interactive_review(apiurl, result)
except oscerr.UserAbort:
pass
else:
print result.list_view()
else:
skipped += 1