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

Merge pull request #928 from jengelh/master

osc co/up: highlight pending requests' header
This commit is contained in:
Daniel Mach 2022-06-02 10:23:58 +02:00 committed by GitHub
commit eac5434700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7566,7 +7566,9 @@ def print_request_list(apiurl, project, package = None, states = ('new', 'review
if not conf.config['check_for_request_on_action'] and not force:
return
requests = get_request_list(apiurl, project, package, req_state=states)
msg = 'Pending requests for %s: %s (%s)'
msg = '\nPending requests for %s: %s (%s)'
if sys.stdout.isatty():
msg = '\033[1m{}\033[0m'.format(msg)
if package is None and len(requests):
print(msg % ('project', project, len(requests)))
elif len(requests):