diff --git a/README.md b/README.md index 5493adba..5977763b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The MCP server can use many of the GitHub APIs, so enable the permissions that y ### Usage with VS Code -For quick installation, use one of the one-click install buttons at the top of this README. +For quick installation, use one of the one-click install buttons at the top of this README. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start. For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`. @@ -192,7 +192,7 @@ docker run -i --rm \ ## GitHub Enterprise Server -The flag `--gh-host` and the environment variable `GH_HOST` can be used to set +The flag `--gh-host` and the environment variable `GITHUB_HOST` can be used to set the GitHub Enterprise Server hostname. ## i18n / Overriding Descriptions diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index b1584c0e..1ecd209e 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -915,23 +915,38 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe "description": "path to the file", }, "position": map[string]interface{}{ - "type": []string{"number", "null"}, + "anyOf": []interface{}{ + map[string]string{"type": "number"}, + map[string]string{"type": "null"}, + }, "description": "position of the comment in the diff", }, "line": map[string]interface{}{ - "type": []string{"number", "null"}, + "anyOf": []interface{}{ + map[string]string{"type": "number"}, + map[string]string{"type": "null"}, + }, "description": "line number in the file to comment on. For multi-line comments, the end of the line range", }, "side": map[string]interface{}{ - "type": []string{"string", "null"}, + "anyOf": []interface{}{ + map[string]string{"type": "string"}, + map[string]string{"type": "null"}, + }, "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)", }, "start_line": map[string]interface{}{ - "type": []string{"number", "null"}, + "anyOf": []interface{}{ + map[string]string{"type": "number"}, + map[string]string{"type": "null"}, + }, "description": "The first line of the range to which the comment refers. Required for multi-line comments.", }, "start_side": map[string]interface{}{ - "type": []string{"string", "null"}, + "anyOf": []interface{}{ + map[string]string{"type": "string"}, + map[string]string{"type": "null"}, + }, "description": "The side of the diff on which the start line resides for multi-line comments. (LEFT or RIGHT)", }, "body": map[string]interface{}{