1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 21:28:42 +02:00

Merge pull request #1616 from andreas-schwab/master

comment: resolve project name
This commit is contained in:
2024-09-05 08:38:31 +02:00
committed by GitHub

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)