Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Jul 24, 2023
1 parent 08e6748 commit 1110186
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1110186

Please sign in to comment.