| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Fixes a runtime GraphQL mutation failure in create_iteration_field caused by shurcooL/githubv4 auto-deriving the wrong selection name casing (projectV2field vs projectV2Field) when no explicit graphql: tag is present on the nested ProjectV2Field selection.
Changes:
| File | Description |
|---|---|
| pkg/github/projects.go | Adds explicit GraphQL selection tags to ensure correct field casing in mutations used by create_iteration_field. |
| pkg/github/projects_v2_test.go | Updates mutation matchers to assert the correct projectV2Field selection name and guard against casing regressions. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fixes create_iteration_field, which failed at runtime because the GraphQL mutation selected projectV2field (lowercase) instead of the schema's projectV2Field.
Why
The inner ProjectV2Field struct fields in createIterationField had no graphql: tag, so shurcooL/githubv4 auto-derived the selection name and mis-cased the word boundary after the embedded V2, producing projectV2field. GitHub's API rejected this, blocking iteration field creation entirely.
Fixes #
What changed
MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
Lint & tests
Docs