summaryrefslogtreecommitdiffstats
path: root/services/pull
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull')
-rw-r--r--services/pull/comment.go2
-rw-r--r--services/pull/pull.go6
-rw-r--r--services/pull/review.go4
3 files changed, 6 insertions, 6 deletions
diff --git a/services/pull/comment.go b/services/pull/comment.go
index 933ad09a85..24dfd8af0c 100644
--- a/services/pull/comment.go
+++ b/services/pull/comment.go
@@ -90,7 +90,7 @@ func CreatePushPullComment(ctx context.Context, pusher *user_model.User, pr *iss
ops.Content = string(dataJSON)
- comment, err = issue_service.CreateComment(ops)
+ comment, err = issue_service.CreateComment(ctx, ops)
return comment, err
}
diff --git a/services/pull/pull.go b/services/pull/pull.go
index fe2f002010..55dfd3c180 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -52,7 +52,7 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, pull *issu
}
for _, assigneeID := range assigneeIDs {
- if err := issue_service.AddAssigneeIfNotAssigned(pull, pull.Poster, assigneeID); err != nil {
+ if err := issue_service.AddAssigneeIfNotAssigned(ctx, pull, pull.Poster, assigneeID); err != nil {
return err
}
}
@@ -122,7 +122,7 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, pull *issu
Content: string(dataJSON),
}
- _, _ = issue_service.CreateComment(ops)
+ _, _ = issue_service.CreateComment(ctx, ops)
}
return nil
@@ -221,7 +221,7 @@ func ChangeTargetBranch(ctx context.Context, pr *issues_model.PullRequest, doer
OldRef: oldBranch,
NewRef: targetBranch,
}
- if _, err = issue_service.CreateComment(options); err != nil {
+ if _, err = issue_service.CreateComment(ctx, options); err != nil {
return fmt.Errorf("CreateChangeTargetBranchComment: %w", err)
}
diff --git a/services/pull/review.go b/services/pull/review.go
index ba93b5e2f5..6feffe4ec4 100644
--- a/services/pull/review.go
+++ b/services/pull/review.go
@@ -248,7 +248,7 @@ func createCodeComment(ctx context.Context, doer *user_model.User, repo *repo_mo
return nil, err
}
}
- return issue_service.CreateComment(&issues_model.CreateCommentOptions{
+ return issue_service.CreateComment(ctx, &issues_model.CreateCommentOptions{
Type: issues_model.CommentTypeCode,
Doer: doer,
Repo: repo,
@@ -368,7 +368,7 @@ func DismissReview(ctx context.Context, reviewID, repoID int64, message string,
return
}
- comment, err = issue_service.CreateComment(&issues_model.CreateCommentOptions{
+ comment, err = issue_service.CreateComment(ctx, &issues_model.CreateCommentOptions{
Doer: doer,
Content: message,
Type: issues_model.CommentTypeDismissReview,