mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
comment: resolve project name
This commit is contained in:
parent
1647395d7f
commit
54edabb992
@ -10251,8 +10251,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
comment = opts.comment
|
comment = opts.comment
|
||||||
|
|
||||||
if args[0] == 'list':
|
if args[0] == 'list':
|
||||||
|
if args[1] == 'package' or args[1] == 'project':
|
||||||
|
args[2] = self._process_project_name(args[2])
|
||||||
print_comments(apiurl, args[1], *args[2:])
|
print_comments(apiurl, args[1], *args[2:])
|
||||||
elif args[0] == 'create':
|
elif args[0] == 'create':
|
||||||
|
if args[1] == 'package' or args[1] == 'project':
|
||||||
|
args[2] = self._process_project_name(args[2])
|
||||||
result = create_comment(apiurl, args[1], comment,
|
result = create_comment(apiurl, args[1], comment,
|
||||||
*args[2:], parent=opts.parent)
|
*args[2:], parent=opts.parent)
|
||||||
print(result)
|
print(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user