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);