* Fixes #7238 - Annotated tag commit ID incorrect * Fixes #7238 - Annotated tag commit ID incorrect
This commit is contained in:
parent
7bd0dc4975
commit
567e117df8
2 changed files with 5 additions and 4 deletions
|
@ -281,7 +281,7 @@ func ToCommitUser(sig *git.Signature) *api.CommitUser {
|
|||
// ToCommitMeta convert a git.Tag to an api.CommitMeta
|
||||
func ToCommitMeta(repo *models.Repository, tag *git.Tag) *api.CommitMeta {
|
||||
return &api.CommitMeta{
|
||||
SHA: tag.ID.String(),
|
||||
SHA: tag.Object.String(),
|
||||
// TODO: Add the /commits API endpoint and use it here (https://developer.github.com/v3/repos/commits/#get-a-single-commit)
|
||||
URL: util.URLJoin(repo.APIURL(), "git/commits", tag.ID.String()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue