You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windsurf is erroring on the `create_pull_request` tool because we're
using an array of types to make fields nullable. This PR uses `anyOf`
instead and should fix the issue.
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -915,23 +915,38 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe
915
915
"description": "path to the file",
916
916
},
917
917
"position": map[string]interface{}{
918
-
"type": []string{"number", "null"},
918
+
"anyOf": []interface{}{
919
+
map[string]string{"type": "number"},
920
+
map[string]string{"type": "null"},
921
+
},
919
922
"description": "position of the comment in the diff",
920
923
},
921
924
"line": map[string]interface{}{
922
-
"type": []string{"number", "null"},
925
+
"anyOf": []interface{}{
926
+
map[string]string{"type": "number"},
927
+
map[string]string{"type": "null"},
928
+
},
923
929
"description": "line number in the file to comment on. For multi-line comments, the end of the line range",
924
930
},
925
931
"side": map[string]interface{}{
926
-
"type": []string{"string", "null"},
932
+
"anyOf": []interface{}{
933
+
map[string]string{"type": "string"},
934
+
map[string]string{"type": "null"},
935
+
},
927
936
"description": "The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. (LEFT or RIGHT)",
928
937
},
929
938
"start_line": map[string]interface{}{
930
-
"type": []string{"number", "null"},
939
+
"anyOf": []interface{}{
940
+
map[string]string{"type": "number"},
941
+
map[string]string{"type": "null"},
942
+
},
931
943
"description": "The first line of the range to which the comment refers. Required for multi-line comments.",
932
944
},
933
945
"start_side": map[string]interface{}{
934
-
"type": []string{"string", "null"},
946
+
"anyOf": []interface{}{
947
+
map[string]string{"type": "string"},
948
+
map[string]string{"type": "null"},
949
+
},
935
950
"description": "The side of the diff on which the start line resides for multi-line comments. (LEFT or RIGHT)",
0 commit comments