summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/release/release.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/services/release/release.go b/services/release/release.go
index 8b4119d252..fd821cc813 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 {