Skip to content

Add assignee_id parameter to linear_search_issues tool #922

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

Description

This PR adds an optional assignee_id parameter to the linear_search_issues tool, allowing users to filter issues by assignee without having to manually include it in the search query string.

Changes

  1. Added an optional assignee_id parameter to the LinearSearchIssuesInput class
  2. Updated the _run method in LinearSearchIssuesTool to pass the parameter to the tool function
  3. Modified the linear_search_issues_tool function to accept and use the assignee_id parameter
    • When provided, it automatically appends assignee:{assignee_id} to the query if not already present

Implementation Details

The implementation is simple but effective - when the assignee_id parameter is provided, it checks if the query already contains an assignee filter, and if not, it adds one. This allows users to filter issues by assignee without having to manually include it in the query string.

Testing

The changes maintain backward compatibility with existing code that doesn't use this parameter, as the parameter is optional with a default value of None.

Related Issue

Resolves the issue requesting the addition of an assignee_id parameter to the linear_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