aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
author谈笑风生间 <xiaodongzhang@whale.im>2023-05-31 15:54:46 +0800
committerGitHub <noreply@github.com>2023-05-31 15:54:46 +0800
commita5acec329e2ca61044f1e1d96858624f2c4a46ac (patch)
tree87757660532d9773fadffa7da6afccc32da4a12e /services
parentbf27fc35960afe4e949c4b7425139a9f5df12aad (diff)
downloadgitea-a5acec329e2ca61044f1e1d96858624f2c4a46ac.tar.gz
gitea-a5acec329e2ca61044f1e1d96858624f2c4a46ac.zip
Rename NotifyPullReviewRequest to NotifyPullRequestReviewRequest (#24988)
after #24481 To keep consistent, maybe pull_request_review_request is better. ## what my pull request does Rename NotifyPullReviewRequest to NotifyPullRequestReviewRequest. <img width="1087" alt="image" src="https://github.com/go-gitea/gitea/assets/75628309/2cf91f02-74f2-42fe-a998-0a039b821d8d">
Diffstat (limited to 'services')
-rw-r--r--services/issue/assignee.go4
-rw-r--r--services/webhook/notifier.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/services/issue/assignee.go b/services/issue/assignee.go
index 4d0224d4bf..943a761e28 100644
--- a/services/issue/assignee.go
+++ b/services/issue/assignee.go
@@ -73,7 +73,7 @@ func ReviewRequest(ctx context.Context, issue *issues_model.Issue, doer, reviewe
}
if comment != nil {
- notification.NotifyPullReviewRequest(ctx, doer, issue, reviewer, isAdd, comment)
+ notification.NotifyPullRequestReviewRequest(ctx, doer, issue, reviewer, isAdd, comment)
}
return comment, err
@@ -260,7 +260,7 @@ func TeamReviewRequest(ctx context.Context, issue *issues_model.Issue, doer *use
continue
}
comment.AssigneeID = member.ID
- notification.NotifyPullReviewRequest(ctx, doer, issue, member, isAdd, comment)
+ notification.NotifyPullRequestReviewRequest(ctx, doer, issue, member, isAdd, comment)
}
return comment, err
diff --git a/services/webhook/notifier.go b/services/webhook/notifier.go
index e10c83e02f..e6d1875b29 100644
--- a/services/webhook/notifier.go
+++ b/services/webhook/notifier.go
@@ -719,9 +719,9 @@ func (m *webhookNotifier) NotifyPullRequestReview(ctx context.Context, pr *issue
}
}
-func (m *webhookNotifier) NotifyPullReviewRequest(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment) {
+func (m *webhookNotifier) NotifyPullRequestReviewRequest(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment) {
if !issue.IsPull {
- log.Warn("NotifyPullReviewRequest: issue is not a pull request: %v", issue.ID)
+ log.Warn("NotifyPullRequestReviewRequest: issue is not a pull request: %v", issue.ID)
return
}
mode, _ := access_model.AccessLevelUnit(ctx, doer, issue.Repo, unit.TypePullRequests)