Skip to content

Commit 53d0833

Browse files
authored
Merge branch 'main' into feat/259/assign-reviewers
2 parents 276ac8d + 9fa582d commit 53d0833

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

pkg/github/pullrequests.go

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -996,23 +996,38 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe
996996
"description": "path to the file",
997997
},
998998
"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+
},
10001003
"description": "position of the comment in the diff",
10011004
},
10021005
"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+
},
10041010
"description": "line number in the file to comment on. For multi-line comments, the end of the line range",
10051011
},
10061012
"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+
},
10081017
"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)",
10091018
},
10101019
"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+
},
10121024
"description": "The first line of the range to which the comment refers. Required for multi-line comments.",
10131025
},
10141026
"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+
},
10161031
"description": "The side of the diff on which the start line resides for multi-line comments. (LEFT or RIGHT)",
10171032
},
10181033
"body": map[string]interface{}{

0 commit comments

Comments
 (0)