diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/release/release.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/release/release.go b/services/release/release.go index c36e2126ed..af97987a27 100644 --- a/services/release/release.go +++ b/services/release/release.go @@ -58,6 +58,12 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error { if err != nil { return fmt.Errorf("CommitsCount: %v", err) } + + u, err := models.GetUserByEmail(commit.Author.Email) + if err == nil { + rel.PublisherID = u.ID + } + } else { rel.CreatedUnix = timeutil.TimeStampNow() } |