loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Patch] Fix closed PR also triggers Webhooks and actions (#23782)

Fix #23707
Cause by #23189
This PR is a quick fix that, when pushing commits to closed PR, webhook
and actions also be triggered.

authored by

sillyguodong and committed by
GitHub
35cb786c 71afbcaf

+4
+4
services/pull/pull.go
··· 294 294 } 295 295 if err == nil { 296 296 for _, pr := range prs { 297 + if pr.Issue.IsClosed { 298 + // The closed PR never trigger action or webhook 299 + continue 300 + } 297 301 if newCommitID != "" && newCommitID != git.EmptySHA { 298 302 changed, err := checkIfPRContentChanged(ctx, pr, oldCommitID, newCommitID) 299 303 if err != nil {