Browse Source

Fix API to return author for author on commits(#16276)

master
6543 1 year ago
committed by GitHub
parent
commit
59c58553ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/convert/git_commit.go

4
modules/convert/git_commit.go

@ -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),
},

Loading…
Cancel
Save