We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 426fd2a commit 103a66aCopy full SHA for 103a66a
routers/api/v1/repo/commits.go
@@ -92,7 +92,7 @@ func GetSingleCommit(ctx *context.APIContext) {
92
URL: setting.AppURL + ctx.Link[1:],
93
SHA: commit.ID.String(),
94
},
95
- HTMLURL: ctx.Repo.Repository.HTMLURL() + "/commits/" + commit.ID.String(),
+ HTMLURL: ctx.Repo.Repository.HTMLURL() + "/commit/" + commit.ID.String(),
96
RepoCommit: &api.RepoCommit{
97
98
Author: &api.CommitUser{
@@ -111,7 +111,7 @@ func GetSingleCommit(ctx *context.APIContext) {
111
112
Message: commit.Message(),
113
Tree: &api.CommitMeta{
114
- URL: ctx.Repo.Repository.APIURL() + "/trees/" + commit.ID.String(),
+ URL: ctx.Repo.Repository.APIURL() + "/git/trees/" + commit.ID.String(),
115
116
117
0 commit comments