Skip to content

Commit

Permalink
api: GetPullRequestCommits: return file list
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Oct 6, 2023
1 parent 7b79be2 commit c47c44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ func GetPullRequestCommits(ctx *context.APIContext) {

apiCommits := make([]*api.Commit, 0, end-start)
for i := start; i < end; i++ {
apiCommit, err := convert.ToCommit(ctx, ctx.Repo.Repository, baseGitRepo, commits[i], userCache, convert.ToCommitOptions{Stat: true})
apiCommit, err := convert.ToCommit(ctx, ctx.Repo.Repository, baseGitRepo, commits[i], userCache, convert.ToCommitOptions{Stat: true, Files: true})
if err != nil {
ctx.ServerError("toCommit", err)
return
Expand Down

0 comments on commit c47c44e

Please sign in to comment.