Merged in bugfix/merge-pr-title-generation (pull request #49)

bugfix: merge pr title generation

Approved-by: Jonathan Teran
This commit is contained in:
JonathanGitFlow
2025-12-14 15:21:54 +00:00
committed by jt
+4
View File
@@ -80,6 +80,10 @@ class MergeCommand(Command):
def create_pull_request(self, token: str, branch: str, target: str):
changelog = Changelog()
title = branch.replace("/", ": ").replace("-", " ")
if title.startswith("release: "):
title = title[title.index(' ', title.index(' ') + 1) + 1:]
message = self.get_remote_api(token).create_pull_request(
branch,