Skip to content

Add assignee_id parameter to search_issues tool #921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 20, 2025

Overview

This PR adds an optional assignee_id parameter to the search_issues tool, allowing users to filter GitHub issues and PRs by assignee directly through a parameter instead of having to manually include it in the search query string.

Changes

  • Added an optional assignee_id parameter to the GithubSearchIssuesInput class
  • Updated the GithubSearchIssuesTool._run method to handle the new parameter by appending assignee:{assignee_id} to the query if provided
  • Updated the tool description to mention the new parameter
  • Updated the docstring in the search function to document the new parameter

Testing

The implementation ensures backward compatibility with existing code that doesn't use this parameter. When the assignee_id parameter is provided, it automatically adds the appropriate filter to the search query.

Related Issue

Resolves: Add assignee_id parameter to search_issues tool

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.

1 participant