mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
Makes more sense for the author value to only have the name since other plugins may use this value.
This commit is contained in:
parent
02630aedbe
commit
96ff3cd05a
@ -69,9 +69,9 @@ func convertPushHook(hook *internal.PostHook, baseURL string) *model.Build {
|
||||
|
||||
|
||||
//Ensuring the author label is not longer then 40 for the label of the commit author (default size in the db)
|
||||
authorLabel := fmt.Sprintf("%s <%s>", hook.Changesets.Values[0].ToCommit.Author.Name, hook.Changesets.Values[0].ToCommit.Author.EmailAddress)
|
||||
authorLabel := hook.Changesets.Values[0].ToCommit.Author.Name
|
||||
if (len(authorLabel) > 40) {
|
||||
authorLabel = fmt.Sprintf("%s", authorLabel[0:40])
|
||||
authorLabel = authorLabel[0:40]
|
||||
}
|
||||
|
||||
build := &model.Build{
|
||||
|
Loading…
Reference in New Issue
Block a user