From 5b601c7db3951aa11a5b6346bf62fa662bb67163 Mon Sep 17 00:00:00 2001 From: Lauren ten Hoor Date: Tue, 10 Feb 2026 20:36:39 +0800 Subject: [PATCH] feat: auto-share ticket URL after task_create MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically includes the issue URL in the announcement when task_create is called, eliminating the need for users to ask 'What's the URL?' after creating a task. Changes: - Enhanced announcement formatting with line breaks - Always includes issue URL with šŸ”— prefix - Improved readability with structured format Example output: šŸ“‹ Created #109: "Fix bug" (To Do) šŸ”— https://github.com/user/repo/issues/109 Ready for pickup when needed. Example with description: šŸ“‹ Created #110: "Add feature" (Planning) With detailed description. šŸ”— https://github.com/user/repo/issues/110 Picking up for DEV... Addresses issue #109 --- lib/tools/task-create.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/tools/task-create.ts b/lib/tools/task-create.ts index 60aa132..d71cc94 100644 --- a/lib/tools/task-create.ts +++ b/lib/tools/task-create.ts @@ -114,6 +114,19 @@ The issue is created with a state label (defaults to "Planning"). Returns the cr // 5. Build response const hasBody = description && description.trim().length > 0; + + // Build announcement with URL + let announcement = `šŸ“‹ Created #${issue.iid}: "${title}" (${label})`; + if (hasBody) { + announcement += "\nWith detailed description."; + } + announcement += `\nšŸ”— ${issue.web_url}`; + if (pickup) { + announcement += "\nPicking up for DEV..."; + } else { + announcement += "\nReady for pickup when needed."; + } + const result = { success: true, issue: { @@ -126,9 +139,7 @@ The issue is created with a state label (defaults to "Planning"). Returns the cr project: project.name, provider: providerType, pickup, - announcement: pickup - ? `šŸ“‹ Created #${issue.iid}: "${title}" (${label}).${hasBody ? " With detailed description." : ""} Picking up for DEV...` - : `šŸ“‹ Created #${issue.iid}: "${title}" (${label}).${hasBody ? " With detailed description." : ""} Ready for pickup when needed.`, + announcement, }; return jsonResult(result);