Skip to content

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

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/taskstoissues-dedup-existing
Open

fix(taskstoissues): skip tasks that already have a GitHub issue#2992
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/taskstoissues-dedup-existing

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

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.

Re-running /speckit-taskstoissues created a duplicate issue for every
task because the command never checked for existing ones. Add a
deduplication step before issue creation: list the repo's issues
(state all) via the GitHub MCP server, collect the task IDs already
present in issue titles, and skip any task that already has a matching
issue. Issue titles are now prefixed with the task ID (e.g. T001:) so
they can be matched on later runs, and list_issues is added to the
command's MCP tools.

Fixes github#2968
@Quratulain-bilal Quratulain-bilal requested a review from mnriem as a code owner June 16, 2026 11:58
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.

[Bug]: /speckit-taskstoissues creates duplicate GitHub issues when issues already exist

1 participant