Extract aliased project mutation primitive#2923
Draft
zwick wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d7dc302d-e6f2-41e9-a2c8-ed598de47067
zwick
force-pushed
the
zwick-extract-projects-batch-mutation
branch
from
July 21, 2026 20:32
a69dd2d to
a7b9cf3
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an internal GraphQL primitive for bounded, aliased project-item mutations while preserving partial results.
Changes:
- Builds and caches reflected update/clear mutation types.
- Executes up to 20 aliased mutations and classifies GraphQL errors.
- Adds focused mutation construction and execution tests.
Show a summary per file
| File | Description |
|---|---|
pkg/github/projects_batch_mutation.go |
Implements aliased mutation construction and execution. |
pkg/github/projects_batch_mutation_test.go |
Tests caching, aliases, limits, and error classification. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Medium
| } | ||
| } | ||
|
|
||
| mutateErr := gqlClient.Mutate(ctx, mutationPtr.Interface(), inputs[0], variables) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the package-local aliased GraphQL mutation primitive used by #2903, isolated from batch orchestration.
Why
This draft is stacked on #2922 so the batch implementation can be reviewed as a linear set of focused changes.
What changed
githubv4.Client, preserving partial-data outcomes and testing GraphQL error classification directly.MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testDocs