super-productivity/packages/plugin-dev/github-issue-provider
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
..
i18n docs(github-plugin): note token-less import returns all open issues 2026-04-27 13:18:58 +02:00
scripts feat(plugins): add plugin issue provider system with GitHub migration 2026-03-03 20:14:54 +01:00
src fix: preserve #<n> prefix on imported issue tasks (#7772) 2026-05-26 14:15:33 +02:00
icon.svg feat(plugins): add plugin issue provider system with GitHub migration 2026-03-03 20:14:54 +01:00
package-lock.json feat(plugins): add plugin issue provider system with GitHub migration 2026-03-03 20:14:54 +01:00
package.json fix(build): ensure plugin-api is built before plugin builds (#6720) 2026-03-04 11:25:21 +01:00
tsconfig.json feat(plugins): add plugin issue provider system with GitHub migration 2026-03-03 20:14:54 +01:00