Skip to content

Commit c7db743

Browse files
authored
Fix API to return author for author on commits(#16276) (#16277)
1 parent e11f042 commit c7db743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/convert/git_commit.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ func ToCommit(repo *models.Repository, commit *git.Commit, userCache map[string]
155155
URL: repo.APIURL() + "/git/commits/" + commit.ID.String(),
156156
Author: &api.CommitUser{
157157
Identity: api.Identity{
158-
Name: commit.Committer.Name,
159-
Email: commit.Committer.Email,
158+
Name: commit.Author.Name,
159+
Email: commit.Author.Email,
160160
},
161161
Date: commit.Author.When.Format(time.RFC3339),
162162
},

0 commit comments

Comments
 (0)