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
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
@@ -996,23 +996,38 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe
996
996
"description": "path to the file",
997
997
},
998
998
"position": map[string]interface{}{
999
-
"type": []string{"number", "null"},
999
+
"anyOf": []interface{}{
1000
+
map[string]string{"type": "number"},
1001
+
map[string]string{"type": "null"},
1002
+
},
1000
1003
"description": "position of the comment in the diff",
1001
1004
},
1002
1005
"line": map[string]interface{}{
1003
-
"type": []string{"number", "null"},
1006
+
"anyOf": []interface{}{
1007
+
map[string]string{"type": "number"},
1008
+
map[string]string{"type": "null"},
1009
+
},
1004
1010
"description": "line number in the file to comment on. For multi-line comments, the end of the line range",
1005
1011
},
1006
1012
"side": map[string]interface{}{
1007
-
"type": []string{"string", "null"},
1013
+
"anyOf": []interface{}{
1014
+
map[string]string{"type": "string"},
1015
+
map[string]string{"type": "null"},
1016
+
},
1008
1017
"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)",
1009
1018
},
1010
1019
"start_line": map[string]interface{}{
1011
-
"type": []string{"number", "null"},
1020
+
"anyOf": []interface{}{
1021
+
map[string]string{"type": "number"},
1022
+
map[string]string{"type": "null"},
1023
+
},
1012
1024
"description": "The first line of the range to which the comment refers. Required for multi-line comments.",
1013
1025
},
1014
1026
"start_side": map[string]interface{}{
1015
-
"type": []string{"string", "null"},
1027
+
"anyOf": []interface{}{
1028
+
map[string]string{"type": "string"},
1029
+
map[string]string{"type": "null"},
1030
+
},
1016
1031
"description": "The side of the diff on which the start line resides for multi-line comments. (LEFT or RIGHT)",
0 commit comments