diff --git a/commands/pull_request.go b/commands/pull_request.go index 34e2064e548b078d54f5f968ca9e56edc2465036..2c8355652703681292e72188fc3023d775ec0a71 100644 --- a/commands/pull_request.go +++ b/commands/pull_request.go @@ -286,7 +286,7 @@ of text is the title and the rest is the description.`, fullBase, fullHead)) message, err = git.Show(commits[0]) utils.Check(err) - re := regexp.MustCompile(`\n\(Co-authored\|Signed-off\)-by:\s.*$`) + re := regexp.MustCompile(`\n(Co-authored|Signed-off)-by:\s.*$`) message = re.ReplaceAllString(message, "") } else if len(commits) > 1 { commitLogs, err := git.Log(baseTracking, headForMessage)