| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Adds sprint-planning support to the consolidated projects_write tool by introducing new method-dispatched operations for creating ProjectsV2 projects and configuring iteration fields.
Changes:
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file| File | Description |
|---|---|
| pkg/github/projects.go | Adds the two new projects_write methods, helper functions, and schema/docs updates in the tool definition. |
| pkg/github/projects_test.go | Updates schema-required-fields assertion to reflect method-conditional requirements. |
| pkg/github/projects_v2_test.go | Adds unit tests covering the new method behavior paths. |
| pkg/github/toolsnaps/projects_write.snap | Updates the snapshot to match the expanded projects_write input schema. |
| README.md | Updates autogenerated tool documentation for the new parameters/methods. |
pkg/github/projects.go:1694
project, _, err := client.Projects.GetUserProject(ctx, owner, projectNumber)
if err != nil {
return "", err
}
return project.GetNodeID(), nil
pkg/github/projects.go:1650
return MarshalledTextResult(updateMutation.UpdateProjectV2Field.ProjectV2Field.ProjectV2IterationField), nil, nil
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
…ts_write Adds two new methods to the consolidated projects_write tool: - create_project: creates a new GitHub ProjectsV2 for a user or org - create_iteration_field: adds an iteration field to an existing project Changes addressing review feedback: - Validate owner_type is exactly 'user' or 'org' in create_project - Use resolveProjectNodeID (GraphQL) instead of getProjectNodeID (REST) to avoid HTTP response body leaks - Add omitempty to Iterations JSON tag - Rename iterations item field startDate to start_date for consistency - Validate iteration elements instead of silently skipping invalid ones - Use explicit response structs with snake_case JSON tags - Add test for auto-detected owner_type in create_iteration_field - Use stubExporters() in test deps for nil-safety Co-authored-by: João Doria de Souza <jdoria@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Summary
Adds two new methods to the consolidated projects_write tool enabling programmatic sprint planning:
Supersedes #2227 and #1864. Closes #1854.
Why
Enables AI agents to automate sprint planning workflows — creating projects and defining iteration cycles — without manual GitHub UI interaction.
Design decisions
What changed
MCP impact
Security / limits
CI fixes from #2227
Lint & tests
Co-authored-by: João Doria de Souza hi@joao.work
Also addresses #1666.