diff --git a/src/git_flow/command/merge.py b/src/git_flow/command/merge.py index af5a8b7..23c8121 100644 --- a/src/git_flow/command/merge.py +++ b/src/git_flow/command/merge.py @@ -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,