Skip to content

Commit

Permalink
Fix API to return author for author on commits(#16276)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jun 27, 2021
1 parent 9a0cd3a commit 59c5855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/convert/git_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ func ToCommit(repo *models.Repository, commit *git.Commit, userCache map[string]
URL: repo.APIURL() + "/git/commits/" + commit.ID.String(),
Author: &api.CommitUser{
Identity: api.Identity{
Name: commit.Committer.Name,
Email: commit.Committer.Email,
Name: commit.Author.Name,
Email: commit.Author.Email,
},
Date: commit.Author.When.Format(time.RFC3339),
},
Expand Down

0 comments on commit 59c5855

Please sign in to comment.