Fix review request webhook bug (#35339) (#35723)

Frontport #35339
Fix #35327
This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-10-23 20:08:21 -07:00
1 parent e03a68c48b
commit 397d666432
6 files changed
+111 -29

No files matched your search

+4
View File
@@ -69,6 +69,10 @@ func CreatePushPullComment(ctx context.Context, pusher *user_model.User, pr *iss
if err != nil {
return nil, err
}
// It maybe an empty pull request. Only non-empty pull request need to create push comment
if len(data.CommitIDs) == 0 {
return nil, nil
}
}
dataJSON, err := json.Marshal(data)