Skip to content

Adding suggest bool flag to suggest type changes to an issue#2548

Merged
SamMorrowDrums merged 3 commits into
mainfrom
boazreicher/issue_type_suggestions
May 26, 2026
Merged

Adding suggest bool flag to suggest type changes to an issue#2548
SamMorrowDrums merged 3 commits into
mainfrom
boazreicher/issue_type_suggestions

Conversation

@boazreicher
Copy link
Copy Markdown
Contributor

Summary

Modifies the issues_granular tool to support a boolean suggest flag 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

@boazreicher boazreicher requested a review from a team as a code owner May 26, 2026 08:03
Copilot AI review requested due to automatic review settings May 26, 2026 08:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_type input schema with a suggest boolean 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 thread pkg/github/issues_granular.go Outdated
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.",
},
Copy link
Copy Markdown
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on field name is all.

Comment thread pkg/github/issues_granular.go Outdated
boazreicher and others added 2 commits May 26, 2026 06:18
Co-authored-by: Sam Morrow <info@sam-morrow.com>
@SamMorrowDrums SamMorrowDrums merged commit 57f4df4 into main May 26, 2026
19 checks passed
@SamMorrowDrums SamMorrowDrums deleted the boazreicher/issue_type_suggestions branch May 26, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants