super-productivity/packages/plugin-dev/github-issue-provider/src
Spyros Seimenis 00c30d34e7
fix: preserve #<n> prefix on imported issue tasks (#7772)
* fix(plugins/github): correct issue-number prefix on imported tasks

The title field mapping mishandled issue imports two ways:

- Search/backlog results carry no `number`, so ctx.issueNumber was
  undefined and titles got a literal "#undefined " prefix. Fall back
  to ctx.issueId (equals String(issue.number) for GitHub).
- mapSearchResult already display-prefixes the title with "#<n> ", so
  re-applying it yielded "#<n> #<n> ...". Short syntax then treated the
  non-leading "#<n>" as a tag and stripped it. toTaskValue is now
  idempotent so the prefix lands exactly once.

* fix(tasks): ignore numeric #tags in issue task titles

An issue task's leading "#<number>" is the issue id, and issue titles
routinely reference other issues ("fixes #1234"). Short syntax parsed
those non-leading "#<n>" tokens as tags, prompted to create them, and
stripped them from the title. Extend the existing numeric-at-start
guard to also block numeric "#<n>" anywhere on issue tasks. Non-numeric
tags ("#mytag") still parse, so manual tagging of issue tasks via the
title keeps working.
2026-05-26 14:15:33 +02:00
..
manifest.json feat(tasks): replace drag handle with done toggle circle and improve mobile UX 2026-03-22 18:14:16 +01:00
plugin.ts fix: preserve #<n> prefix on imported issue tasks (#7772) 2026-05-26 14:15:33 +02:00