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

Frontport from #35339
This commit is contained in:
Lunny Xiao
2025-10-24 19:10:50 +00:00
committed by GitHub
parent b2f2f8528a
commit 123c8d2b81
6 changed files with 110 additions and 29 deletions
+3
View File
@@ -69,6 +69,9 @@ func CreatePushPullComment(ctx context.Context, pusher *user_model.User, pr *iss
if err != nil {
return nil, err
}
if len(data.CommitIDs) == 0 {
return nil, nil
}
}
dataJSON, err := json.Marshal(data)