Adding suggest bool flag to suggest type changes to an issue#2548
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an optional suggest boolean flag to the granular update_issue_type tool so callers can request a “proposal-only” response instead of applying the change to GitHub. This fits into the issues_granular toolset by enabling safer, user-confirmable workflows for issue classification changes.
Changes:
- Extend
update_issue_typeinput schema with asuggestboolean flag. - Implement “suggest-only” execution path that returns a JSON payload describing the proposed change (and optional trimmed rationale) without calling the GitHub API.
- Add unit tests for the suggest behavior and update the tool schema snapshot.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/issues_granular.go | Adds suggest flag to tool schema and implements early-return suggestion behavior. |
| pkg/github/granular_tools_test.go | Adds tests validating suggest-mode output with/without rationale. |
| pkg/github/toolsnaps/update_issue_type.snap | Updates toolsnap to reflect the new suggest input parameter. |
Copilot's findings
- Files reviewed: 3/3 changed files
- Comments generated: 1
Comment on lines
+515
to
+519
| "suggest": { | ||
| Type: "boolean", | ||
| Description: "If true, propose the issue type change instead of applying it. " + | ||
| "Defaults to false, which applies the change to the issue.", | ||
| }, |
Collaborator
SamMorrowDrums
left a comment
There was a problem hiding this comment.
Minor comment on field name is all.
Co-authored-by: Sam Morrow <info@sam-morrow.com>
SamMorrowDrums
approved these changes
May 26, 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
Modifies the issues_granular tool to support a boolean
suggestflag to the update issue type granular tool.Context
Allows agents to only suggest a change to an issue's type, and a user can then choose whether to reject or apply it.
Why
Closes https://github.com/github/plan-track-agentic-toolkit/issues/128