Skip to content

Annotate granular update_issue tools as destructive#2471

Open
gokhanarkan wants to merge 1 commit into
mainfrom
gokhanarkan/fides-update-issue
Open

Annotate granular update_issue tools as destructive#2471
gokhanarkan wants to merge 1 commit into
mainfrom
gokhanarkan/fides-update-issue

Conversation

@gokhanarkan
Copy link
Copy Markdown
Member

Sets destructiveHint: true on the seven granular update_issue_* tools (title, body, assignees, labels, milestone, state, type) so the IFC client engine can apply egress policies. The unified issue_write tool is covered by #2470. Third of four egress annotations from github/copilot-mcp-core#1623.

Sets destructiveHint: true on the seven granular update_issue_*
tools (title, body, assignees, labels, milestone, state, type) so the
IFC client engine can apply egress policies before invocation. The
unified issue_write tool is covered separately by #2470.

Refs github/copilot-mcp-core#1623.
@gokhanarkan gokhanarkan requested a review from a team as a code owner May 13, 2026 13:18
Copilot AI review requested due to automatic review settings May 13, 2026 13:18
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

This PR updates the granular issue update tool definitions to mark them as destructive operations, enabling IFC client-side egress policy enforcement for issue mutation actions.

Changes:

  • Set destructiveHint: true in the shared issueUpdateTool helper, covering the single-field granular update_issue_* tools.
  • Set destructiveHint: true for the standalone update_issue_type tool definition.
  • Updated the corresponding tool schema snapshots to reflect the new destructive annotation.
Show a summary per file
File Description
pkg/github/issues_granular.go Marks granular issue update tools as destructive via tool annotations (including update_issue_type).
pkg/github/toolsnaps/update_issue_type.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_title.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_state.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_milestone.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_labels.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_body.snap Updates snapshot to show destructiveHint: true.
pkg/github/toolsnaps/update_issue_assignees.snap Updates snapshot to show destructiveHint: true.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 0

@gokhanarkan gokhanarkan self-assigned this May 13, 2026
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.

2 participants