Skip to content

Commit 4845093

Browse files
KN4CK3Rlunny
andauthored
Allow empty assignees on pull request edit (#22150) (#22213)
Backport of #22150 Co-authored-by: Lunny Xiao <[email protected]>
1 parent 7dcf9dd commit 4845093

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routers/api/v1/repo/pull.go

+5
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,11 @@ func EditPullRequest(ctx *context.APIContext) {
488488
issue := pr.Issue
489489
issue.Repo = ctx.Repo.Repository
490490

491+
if err := issue.LoadAttributes(ctx); err != nil {
492+
ctx.Error(http.StatusInternalServerError, "LoadAttributes", err)
493+
return
494+
}
495+
491496
if !issue.IsPoster(ctx.Doer.ID) && !ctx.Repo.CanWrite(unit.TypePullRequests) {
492497
ctx.Status(http.StatusForbidden)
493498
return

0 commit comments

Comments
 (0)