1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00

comment: resolve project name

This commit is contained in:
Andreas Schwab 2024-02-11 23:38:58 +01:00
parent 1647395d7f
commit 54edabb992

View File

@ -10251,8 +10251,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
comment = opts.comment
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:])
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,
*args[2:], parent=opts.parent)
print(result)