Skip to content

Commit

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

Please sign in to comment.