mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 03:02:12 +01:00
osc co/up: highlight pending requests' header
Found myself to mentally miss the request list of 1 pending rq and so I am pitching the idea of subtle boldening for experimentation.
This commit is contained in:
parent
4aecebc265
commit
0d40ff8ce6
@ -7441,7 +7441,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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user