mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 17:56:15 +01:00
default to current user when adding a review
This commit is contained in:
parent
1b8c4a3382
commit
0d93af2291
@ -1647,6 +1647,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
cmd = args[0]
|
cmd = args[0]
|
||||||
del args[0]
|
del args[0]
|
||||||
|
|
||||||
|
apiurl = self.get_api_url()
|
||||||
|
|
||||||
if cmd in ['list']:
|
if cmd in ['list']:
|
||||||
min_args, max_args = 0, 2
|
min_args, max_args = 0, 2
|
||||||
else:
|
else:
|
||||||
@ -1656,9 +1658,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if len(args) > max_args:
|
if len(args) > max_args:
|
||||||
raise oscerr.WrongArgs('Too many arguments.')
|
raise oscerr.WrongArgs('Too many arguments.')
|
||||||
if cmd in ['add'] and not opts.user and not opts.group:
|
if cmd in ['add'] and not opts.user and not opts.group:
|
||||||
raise oscerr.WrongArgs('Need either a user or group as reviewer')
|
opts.user = conf.get_apiurl_usr(apiurl)
|
||||||
|
|
||||||
apiurl = self.get_api_url()
|
|
||||||
|
|
||||||
if cmd == 'list' or cmd == 'approvenew':
|
if cmd == 'list' or cmd == 'approvenew':
|
||||||
package = None
|
package = None
|
||||||
|
Loading…
Reference in New Issue
Block a user