| name | translate-issue |
| description | Sync spec file to github issue. When user type: "Sync issue #1", "sync spec #1",... |
Overview
Sync spec file content to GitHub issue as comments.
Steps
-
Extract issue number from user input. If not provided, extract from current branch name (e.g., feature/hung-#1-add-basic-login -> 1)
-
Find spec file matching the issue number using glob pattern specs/issues/{number}-*.md
-
Read the spec file content
-
Add two comments to the GitHub issue (owner: nxhung2304, repo: ai-overview):
Comment 1 - Vietnamese translation:
## 🇻🇳 Spec - Bản dịch tiếng Việt
{translated spec content to Vietnamese}
Comment 2 - Original language (English):
## 🇬🇧 Spec - Original
{original spec content as-is from the file}
-
Show the user links to both comments when done