spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

fix(taskstoissues): skip tasks that already have a GitHub issue

Open Quratulain-bilal opened this issue 5 months ago • 1 comments

Fixes #2968

Re-running /speckit-taskstoissues created a duplicate issue for every task because the command never checked whether an issue already existed.

This adds a dedup step before issue creation: it lists the repo's issues (state all, so closed ones count too) via the GitHub MCP server, pulls the task IDs already present in issue titles, and skips any task that already has a matching issue. New issue titles are prefixed with the task ID (e.g. T001:) so they can be matched on later runs. list_issues is added to the command's MCP tools for the read.

Single template change, no behavior change on a first run — only re-runs are affected.

This PR was authored with AI assistance (Claude Code), reviewed by me.

Quratulain-bilal avatar Jun 16 '26 11:06 Quratulain-bilal

Please address Copilot feedback

mnriem avatar Jun 16 '26 21:06 mnriem

Please address Copilot feedback

mnriem avatar Jun 17 '26 18:06 mnriem

Please address Copilot feedback

mnriem avatar Jun 18 '26 16:06 mnriem

Thank you!

mnriem avatar Jun 19 '26 17:06 mnriem