Skip to content

Add support for multiple Linear teams to LinearCreateIssueTool#843

Closed
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/16a5d449-6182-4bd8-b86a-804def57ab0b
Closed

Add support for multiple Linear teams to LinearCreateIssueTool#843
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/16a5d449-6182-4bd8-b86a-804def57ab0b

Conversation

@codegen-sh
Copy link
Contributor

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

This PR adds support for multiple Linear teams to the LinearCreateIssueTool and other Linear tools.

Changes

  1. Updated all Linear tools to be initialized with a Codebase object instead of a LinearClient
  2. Added a _get_client() method to each Linear tool that creates a LinearClient on demand
  3. Specifically for LinearCreateIssueTool, ensured it initializes the client without a default team_id to allow explicit team selection
  4. Added a test file that specifically tests creating issues with explicit team_id values

Testing

Added a new test file tests/integration/extension/test_linear_team_id.py that verifies:

  • Creating issues with explicit team_id values
  • Testing with multiple teams when available

This fixes the issue where LinearCreateIssueTool was defaulting to the first team in the list and not respecting the specified team_id.

Fixes CG-12122

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tkfoss tkfoss closed this Mar 20, 2025
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