Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.8k
Update mcp server with latest google/go-github API#1358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
97023fb615f1584e56feeed4f2940d9504bf3cbb05773d1d738afee855638232a6dc42e2f723d2971d2bb0f7bbf9323240e3db2d1641b3ab7cb55a6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -653,8 +653,8 @@ func Test_ListProjectItems(t *testing.T) { | ||
| mock.EndpointPattern{Pattern: "/orgs/{org}/projectsV2/{project}/items", Method: http.MethodGet}, | ||
| http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
| q := r.URL.Query() | ||
| fieldParams := q["fields"] | ||
| if len(fieldParams) == 3 && fieldParams[0] == "123" && fieldParams[1] == "456" && fieldParams[2] == "789" { | ||
| fieldParams := q.Get("fields") | ||
| if fieldParams == "123,456,789" { | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see this comment in relation to this change. | ||
| w.WriteHeader(http.StatusOK) | ||
| _, _ = w.Write(mock.MustMarshal(orgItems)) | ||
| return | ||
| @@ -852,8 +852,8 @@ func Test_GetProjectItem(t *testing.T) { | ||
| mock.EndpointPattern{Pattern: "/orgs/{org}/projectsV2/{project}/items/{item_id}", Method: http.MethodGet}, | ||
| http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||
| q := r.URL.Query() | ||
| fieldParams := q["fields"] | ||
| if len(fieldParams) == 2 && fieldParams[0] == "123" && fieldParams[1] == "456" { | ||
| fieldParams := q.Get("fields") | ||
| if fieldParams == "123,456" { | ||
| w.WriteHeader(http.StatusOK) | ||
| _, _ = w.Write(mock.MustMarshal(orgItem)) | ||
| return | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standardized field parameters has changed from array notation (
fields[]=123&fields[]=456) to comma-separated format (fields=123,456,789).Why this change was needed:
github.com/google/go-querystringlibrary using the,commatag optionprojects_test.goconfirm the comma format works correctly:fieldParams == "123,456,789"Technical details: The
fieldSelectionOptionsstruct now usesurl:"fields,omitempty,comma"which leverages go-querystring's built-in comma support rather than custom array parameter logic.See ListProjectItemsOptions struct
I have also updated this internally to align the MCP server with the underlying
google/go-githubdependency since we're not quite ready to migrateGetProjectItemyet as per this PR's description.