From 11101865af349790720585f3395332f3363de4fc Mon Sep 17 00:00:00 2001 From: Jan Baraniewski Date: Mon, 24 Jul 2023 18:46:39 +0200 Subject: [PATCH] Fix --- pkg/issue.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/issue.go b/pkg/issue.go index 61eab58..13aa3b1 100644 --- a/pkg/issue.go +++ b/pkg/issue.go @@ -245,11 +245,13 @@ func OpenPullRequest(issueID IssueID, customTitle string) error { repo := config.GetRepository(profile.DefaultRepository) - title := customTitle - if title == "" { - title = fmt.Sprintf("%v | %v", issue.ID, issue.Name) + titleText := customTitle + if titleText == "" { + titleText = issue.Name } + title := fmt.Sprintf("%v | %v", issue.ID, titleText) + Log.Infofp("📂", "Opening PR for issue %v in %v/%v [%v]", issueID, repo.Owner,