1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-29 03:06:15 +01:00

Merge branch 'show_comments_in_reviews' of https://github.com/lethliel/osc

Show the comments of a request during interactive review.
This commit is contained in:
Marcus Huewe 2017-08-25 13:23:17 +02:00
commit e0bce5652a

View File

@ -7142,6 +7142,7 @@ def request_interactive_review(apiurl, request, initial_cmd='', group=None,
print('unable to retrieve the buildstatus: %s' % e)
print_request(request)
print_comments(apiurl, 'request', request.reqid)
try:
prompt = '(a)ccept/(d)ecline/(r)evoke/c(l)one/co(m)ment/(s)kip/(c)ancel > '
editable_actions = request.get_actions('submit', 'maintenance_incident')
@ -7184,6 +7185,7 @@ def request_interactive_review(apiurl, request, initial_cmd='', group=None,
tmpfile.flush()
run_editor(tmpfile.name)
print_request(request)
print_comments(apiurl, 'request', request.reqid)
elif repl == 's':
print('skipping: #%s' % request.reqid, file=sys.stderr)
break