Change confidence enum to use uppercase values to match GraphQL schema#2715
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the issue-related “confidence” parameter to use uppercase values (LOW, MEDIUM, HIGH) to align with the GraphQL schema, updating tool schemas, runtime validation, documentation, and tests for consistency across the MCP server’s issue tooling.
Changes:
- Updated granular issue tools’ JSON schemas and descriptions to enumerate
LOW|MEDIUM|HIGHforconfidence. - Updated runtime validation and error messages to reflect the uppercase confidence values.
- Updated toolsnap snapshots, docs, and unit tests to match the new casing.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/issues_granular.go | Updates tool schemas/descriptions and runtime validation for confidence to uppercase values. |
| pkg/github/granular_tools_test.go | Adjusts tests to send/expect uppercase confidence values and updated error text. |
| pkg/github/toolsnaps/update_issue_type.snap | Updates snapshot schema text/enums to uppercase confidence values. |
| pkg/github/toolsnaps/update_issue_labels.snap | Updates snapshot schema text/enums to uppercase confidence values. |
| pkg/github/toolsnaps/set_issue_fields.snap | Updates snapshot schema text/enums to uppercase confidence values. |
| docs/feature-flags.md | Updates generated feature-flag tool docs to reflect uppercase confidence guidance. |
Copilot's findings
- Files reviewed: 6/6 changed files
- Comments generated: 3
kelsey-myers
previously approved these changes
Jun 17, 2026
RossTarrant
approved these changes
Jun 17, 2026
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
This PR standardizes the allowed values for the "confidence" field in issue-related APIs and tools to use uppercase strings ("LOW", "MEDIUM", "HIGH") instead of lowercase to match the GraphQL schema, updating documentation, validation logic, and tests accordingly. This ensures consistency across the codebase and improves clarity for users and developers.
Why
What changed
This pull request standardizes the allowed values for the
confidencefield in issue-related tools, schemas, and tests. Previously, theconfidencefield accepted lowercase values (low,medium,high); this change updates all code, documentation, and tests to require uppercase values (LOW,MEDIUM,HIGH) for consistency and clarity.Schema and Validation Updates:
LOW,MEDIUM,HIGH) instead of lowercase. This includes theupdate_issue_type,update_issue_labels, andset_issue_fieldstools. [1] [2] [3] [4] [5] [6] [7]Documentation Updates:
LOW,MEDIUM,HIGH). [1] [2] [3]Test Updates:
These changes ensure that the
confidencefield is consistently handled across the codebase, reducing ambiguity and potential errors.MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goNote: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.
Lint & tests
./script/lint./script/testDocs