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:
@@ -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
|
||||
|
Reference in New Issue
Block a user