Skip to content

Conversation

@codegen-sh
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.

2 participants