Преглед изворни кода

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

tags/v1.14.4
6543 пре 3 година
родитељ
комит
c7db7438b7
No account linked to committer's email address
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      modules/convert/git_commit.go

+ 2
- 2
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…
Откажи
Сачувај