提交 f8c531a8 编写于 作者: S Siôn le Roux

Strip co-author from PR descriptions

The Signed-off-by string already gets stripped, so I extended the
regular expression to also match Co-authored-by.

Resolves #2311
上级 51a25659
......@@ -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(`\nSigned-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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册