diff --git a/gitcmds/const.go b/gitcmds/const.go index e2718c9..7036344 100644 --- a/gitcmds/const.go +++ b/gitcmds/const.go @@ -7,6 +7,7 @@ const ( errMsgFailedToGetMainBranch = "failed to get main branch: %w" countOfZerosIn1000 = 3 decimalBase = 10 + bitSizeOfInt64 = 64 ) diff --git a/gitcmds/gitcmds.go b/gitcmds/gitcmds.go index 52e289d..83aeaba 100644 --- a/gitcmds/gitcmds.go +++ b/gitcmds/gitcmds.go @@ -2300,7 +2300,7 @@ func createPR(wd, parentRepoName, prBranchName string, notes []string, asDraft b prTitle, err = jira.GetJiraIssueName(notesObj.JiraTicketURL, "") default: fmt.Print("Enter pull request title: ") - if _, err := fmt.Scanln(&prTitle); err != nil { + if _, err := fmt.Scan(&prTitle); err != nil { return "", "", err } prTitle = strings.TrimSpace(prTitle)