Skip to content

Commit

Permalink
Fix API to return author for author on commits(#16276) (#16277)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jun 28, 2021
1 parent e11f042 commit c7db743
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 c7db743

Please sign in to comment.