mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-08 20:15:47 +01:00
- introduced new "request_show_source_buildstatus" config option
If enabled, it always shows the source buildstatus during "osc rq show <id>" or "osc rq list --interactive". By default, it is disabled.
This commit is contained in:
parent
add34d65cb
commit
e8783d2501
@ -2130,6 +2130,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if cmd in ['add'] and not opts.user and not opts.group and not opts.project:
|
if cmd in ['add'] and not opts.user and not opts.group and not opts.project:
|
||||||
raise oscerr.WrongArgs('No reviewer specified.')
|
raise oscerr.WrongArgs('No reviewer specified.')
|
||||||
|
|
||||||
|
source_buildstatus = conf.config['request_show_source_buildstatus'] or opts.source_buildstatus
|
||||||
|
|
||||||
reqid = None
|
reqid = None
|
||||||
supersedid = None
|
supersedid = None
|
||||||
if cmd == 'list' or cmd == 'approvenew':
|
if cmd == 'list' or cmd == 'approvenew':
|
||||||
@ -2283,7 +2285,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
ignore_reviews = subcmd != 'review'
|
ignore_reviews = subcmd != 'review'
|
||||||
request_interactive_review(apiurl, result, group=opts.group,
|
request_interactive_review(apiurl, result, group=opts.group,
|
||||||
ignore_reviews=ignore_reviews,
|
ignore_reviews=ignore_reviews,
|
||||||
source_buildstatus=opts.source_buildstatus)
|
source_buildstatus=source_buildstatus)
|
||||||
else:
|
else:
|
||||||
print(result.list_view(), '\n')
|
print(result.list_view(), '\n')
|
||||||
else:
|
else:
|
||||||
@ -2324,11 +2326,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
ignore_reviews = subcmd != 'review'
|
ignore_reviews = subcmd != 'review'
|
||||||
return request_interactive_review(apiurl, r, group=opts.group,
|
return request_interactive_review(apiurl, r, group=opts.group,
|
||||||
ignore_reviews=ignore_reviews,
|
ignore_reviews=ignore_reviews,
|
||||||
source_buildstatus=opts.source_buildstatus)
|
source_buildstatus=source_buildstatus)
|
||||||
else:
|
else:
|
||||||
print(r)
|
print(r)
|
||||||
print_comments(apiurl, 'request', reqid)
|
print_comments(apiurl, 'request', reqid)
|
||||||
if opts.source_buildstatus:
|
if source_buildstatus:
|
||||||
sr_actions = r.get_actions('submit')
|
sr_actions = r.get_actions('submit')
|
||||||
if not sr_actions:
|
if not sr_actions:
|
||||||
raise oscerr.WrongOptions( '\'--source-buildstatus\' not possible ' \
|
raise oscerr.WrongOptions( '\'--source-buildstatus\' not possible ' \
|
||||||
|
@ -161,6 +161,7 @@ DEFAULTS = {'apiurl': 'https://api.opensuse.org',
|
|||||||
# what to do with the source package if the submitrequest has been accepted
|
# what to do with the source package if the submitrequest has been accepted
|
||||||
'submitrequest_on_accept_action': '',
|
'submitrequest_on_accept_action': '',
|
||||||
'request_show_interactive': '0',
|
'request_show_interactive': '0',
|
||||||
|
'request_show_source_buildstatus': '0',
|
||||||
# if a review is accepted in interactive mode and a group
|
# if a review is accepted in interactive mode and a group
|
||||||
# was specified the review will be accepted for this group
|
# was specified the review will be accepted for this group
|
||||||
'review_inherit_group': '0',
|
'review_inherit_group': '0',
|
||||||
@ -185,8 +186,8 @@ config = DEFAULTS.copy()
|
|||||||
|
|
||||||
boolean_opts = ['debug', 'do_package_tracking', 'http_debug', 'post_mortem', 'traceback', 'check_filelist', 'plaintext_passwd',
|
boolean_opts = ['debug', 'do_package_tracking', 'http_debug', 'post_mortem', 'traceback', 'check_filelist', 'plaintext_passwd',
|
||||||
'checkout_no_colon', 'checkout_rooted', 'check_for_request_on_action', 'linkcontrol', 'show_download_progress', 'request_show_interactive',
|
'checkout_no_colon', 'checkout_rooted', 'check_for_request_on_action', 'linkcontrol', 'show_download_progress', 'request_show_interactive',
|
||||||
'review_inherit_group', 'use_keyring', 'gnome_keyring', 'no_verify', 'builtin_signature_check', 'http_full_debug',
|
'request_show_source_buildstatus', 'review_inherit_group', 'use_keyring', 'gnome_keyring', 'no_verify', 'builtin_signature_check',
|
||||||
'include_request_from_project', 'local_service_run', 'buildlog_strip_time']
|
'http_full_debug', 'include_request_from_project', 'local_service_run', 'buildlog_strip_time']
|
||||||
|
|
||||||
api_host_options = ['user', 'pass', 'passx', 'aliases', 'http_headers', 'email', 'sslcertck', 'cafile', 'capath', 'trusted_prj']
|
api_host_options = ['user', 'pass', 'passx', 'aliases', 'http_headers', 'email', 'sslcertck', 'cafile', 'capath', 'trusted_prj']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user