Skip to content

Create and assign Linear ticket before solving an issue#822

Draft
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/32e8dff5-4e3e-4e47-9056-53394275b414
Draft

Create and assign Linear ticket before solving an issue#822
codegen-sh[bot] wants to merge 2 commits intodevelopfrom
gen/32e8dff5-4e3e-4e47-9056-53394275b414

Conversation

@codegen-sh
Copy link
Contributor

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

Description

This PR implements the feature to create a Linear ticket before solving an issue, as requested in CG-11608.

Changes

  1. Updated the system prompt in prompts.py to include the instruction to create a Linear ticket before solving an issue
  2. Modified the create_codebase_agent and create_chat_agent functions to include Linear tools when available
  3. Added proper error handling for when Linear client is not configured

How it works

When a user asks the agent to solve an issue, the agent will:

  1. Create a Linear ticket to track the work
  2. Assign the ticket to itself
  3. Proceed with solving the issue

This ensures that all work is properly tracked in Linear, even when initiated directly from Slack.

Testing

The changes are conditional on Linear being configured, so they won't affect environments without Linear integration.

Closes CG-11608

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

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