We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475b6e8 commit 72a7fd3Copy full SHA for 72a7fd3
routers/web/repo/issue.go
@@ -2413,6 +2413,15 @@ func UpdatePullReviewRequest(ctx *context.Context) {
2413
ctx.Status(http.StatusForbidden)
2414
return
2415
}
2416
+ if issue.PullRequest.HasMerged {
2417
+ log.Warn(
2418
+ "UpdatePullReviewRequest: cannot add or remove a review for merged PR %-v#%d",
2419
+ issue.Repo.FullName(), issue.PullRequest.Index,
2420
+ )
2421
+ ctx.Status(http.StatusForbidden)
2422
+ return
2423
+ }
2424
+
2425
if reviewID < 0 {
2426
// negative reviewIDs represent team requests
2427
if err := issue.Repo.LoadOwner(ctx); err != nil {
0 commit comments