mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 07:26:15 +01:00
- added support to specify a default action if a submitrequest has been accepted
This commit is contained in:
parent
b983f116eb
commit
0bf48f2b73
@ -686,7 +686,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
opts.days = conf.config['request_list_days']
|
opts.days = conf.config['request_list_days']
|
||||||
return self.do_request('list', opts, *args)
|
return self.do_request('list', opts, *args)
|
||||||
|
|
||||||
src_update = None
|
src_update = conf.config['submitrequest_on_accept_action'] or None
|
||||||
# we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server
|
# we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server
|
||||||
if opts.cleanup:
|
if opts.cleanup:
|
||||||
src_update = "cleanup"
|
src_update = "cleanup"
|
||||||
|
@ -106,6 +106,8 @@ DEFAULTS = { 'apiurl': 'https://api.opensuse.org',
|
|||||||
'check_filelist': '1',
|
'check_filelist': '1',
|
||||||
# check for pending requests after executing an action (e.g. checkout, update, commit)
|
# check for pending requests after executing an action (e.g. checkout, update, commit)
|
||||||
'check_for_request_on_action': '0',
|
'check_for_request_on_action': '0',
|
||||||
|
# what to do with the source package if the submitrequest has been accepted
|
||||||
|
'submitrequest_on_accept_action': '',
|
||||||
'linkcontrol': '0',
|
'linkcontrol': '0',
|
||||||
|
|
||||||
# Maintenance defaults to OBS instance defaults
|
# Maintenance defaults to OBS instance defaults
|
||||||
@ -190,6 +192,10 @@ apiurl = %(apiurl)s
|
|||||||
# check for pending requests after executing an action (e.g. checkout, update, commit)
|
# check for pending requests after executing an action (e.g. checkout, update, commit)
|
||||||
#check_for_request_on_action = 0
|
#check_for_request_on_action = 0
|
||||||
|
|
||||||
|
# what to do with the source package if the submitrequest has been accepted. If
|
||||||
|
# nothing is specified the API default is used
|
||||||
|
#submitrequest_on_accept_action = cleanup|update|noupdate
|
||||||
|
|
||||||
[%(apiurl)s]
|
[%(apiurl)s]
|
||||||
user = %(user)s
|
user = %(user)s
|
||||||
pass = %(pass)s
|
pass = %(pass)s
|
||||||
|
Loading…
Reference in New Issue
Block a user