diff --git a/services/release/release.go b/services/release/release.go index 8b4119d252be..fd821cc813a4 100644 --- a/services/release/release.go +++ b/services/release/release.go @@ -63,9 +63,11 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error { return fmt.Errorf("CommitsCount: %v", err) } - u, err := models.GetUserByEmail(commit.Author.Email) - if err == nil { - rel.PublisherID = u.ID + if rel.PublisherID <= 0 { + u, err := models.GetUserByEmail(commit.Author.Email) + if err == nil { + rel.PublisherID = u.ID + } } } else {