Skip to content

Commit 8024182

Browse files
authored
chore: remove duplicate code (#4397)
1 parent 3c1ce61 commit 8024182

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

util/release.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -601,16 +601,6 @@ func createInitializrPR(version, bootMax string, step int) {
601601
fullName = username
602602
}
603603

604-
// Try to get email from git config, fallback to emailOpt
605-
userEmail, _ := runCmd("git", "config", "user.email")
606-
if userEmail == "" {
607-
userEmail = emailOpt
608-
}
609-
610-
if userEmail != "" {
611-
prBody += fmt.Sprintf("\n\nSigned-off-by: %s <%s>", fullName, userEmail)
612-
}
613-
614604
headArg := fmt.Sprintf("%s:%s", username, branchName)
615605

616606
ghCmd := exec.Command("gh", "pr", "create",

0 commit comments

Comments
 (0)