We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce49e8 commit 67a711cCopy full SHA for 67a711c
osc/commands_git/pr_create.py
@@ -22,6 +22,9 @@
22
# Creating {source_owner}/{source_repo}#{source_branch} -> {target_owner}/{target_repo}#{target_branch}
23
#
24
{git_status}
25
+#
26
+# Commits:
27
+{git_commits}
28
""".lstrip()
29
30
@@ -137,6 +140,12 @@ def run(self, args):
137
140
else:
138
141
git_status = "#"
139
142
143
+ if use_local_git:
144
+ git_commits = git._run_git(["log", "--format=- %s", f"{target_branch_obj.commit}..{source_branch_obj.commit}"])
145
+ git_commits = "\n".join([f"# {i}" for i in git_commits.splitlines()])
146
+ else:
147
+ git_commits = "#"
148
+
149
message = gitea_api.edit_message(template=NEW_PULL_REQUEST_TEMPLATE.format(**locals()))
150
151
# remove comments
0 commit comments