1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-28 15:29:52 +01:00

Add a different message for scheduled merges in 'git-obs pr merge' command

This commit is contained in:
2025-07-23 09:35:21 +02:00
parent 476e764472
commit 698ba4d64b

View File

@@ -29,9 +29,10 @@ class PullRequestMergeCommand(osc.commandline_git.GitObsCommand):
pull_request_ids = args.id
for pr_index, pr_id in enumerate(pull_request_ids):
self.print_gitea_settings()
print(f"Merging {pr_id}...")
if args.now:
print(f"Merging {pr_id}...")
else:
print(f"Scheduling auto merge of {pr_id}...")
owner, repo, number = gitea_api.PullRequest.split_id(pr_id)
gitea_api.PullRequest.merge(