1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-31 22:58:35 +00:00

A small refactor to use context in the service layer (#35179)

This commit is contained in:
Lunny Xiao
2025-07-31 11:43:54 +08:00
committed by GitHub
parent c3f5ea3b1f
commit 84d31bc842
2 changed files with 4 additions and 7 deletions

View File

@@ -581,7 +581,7 @@ func GetPullCommits(ctx *context.Context) {
}
resp := &pullCommitList{}
commits, lastReviewCommitSha, err := pull_service.GetPullCommits(ctx, issue)
commits, lastReviewCommitSha, err := pull_service.GetPullCommits(ctx, ctx.Repo.GitRepo, ctx.Doer, issue)
if err != nil {
ctx.JSON(http.StatusInternalServerError, err)
return