load-issues
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLoad all open issues from the current GitHub repository and save them as markdown files in the directory.
./specs/issues/Follow these steps:
-
Use the gh CLI to list all open issues in the current repository:
- Run to get all open issues
gh issue list --limit 100
- Run
-
For each open issue, fetch detailed information:
- Run
gh issue view <number> --json number,title,body,state,createdAt,updatedAt,author,labels,assignees,url - Extract all relevant metadata
- Run
-
Create the issues directory:
- Run to ensure the directory exists
mkdir -p ./specs/issues
- Run
-
Save each issue as a separate markdown file:
- File naming pattern:
<number-padded-to-3-digits>-<kebab-case-title>.md - Example:
007-make-code-review-trigger-on-sql-sh-changes.md
- File naming pattern:
-
Use the following markdown template for each issue file:
markdown
undefined从当前GitHub仓库加载所有未关闭的Issue,并将其保存为Markdown文件至目录。
./specs/issues/请遵循以下步骤:
-
使用gh CLI列出当前仓库中的所有未关闭Issue:
- 运行获取所有未关闭Issue
gh issue list --limit 100
- 运行
-
为每个未关闭Issue获取详细信息:
- 运行
gh issue view <number> --json number,title,body,state,createdAt,updatedAt,author,labels,assignees,url - 提取所有相关元数据
- 运行
-
创建Issue目录:
- 运行确保目录存在
mkdir -p ./specs/issues
- 运行
-
将每个Issue保存为单独的Markdown文件:
- 文件命名规则:
<number-padded-to-3-digits>-<kebab-case-title>.md - 示例:
007-make-code-review-trigger-on-sql-sh-changes.md
- 文件命名规则:
-
为每个Issue文件使用以下Markdown模板:
markdown
undefinedIssue #<number>: <title>
Issue #<number>: <title>
Status: <state>
Created: <createdAt>
Updated: <updatedAt>
Author: <author.name> (@<author.login>)
URL: <url>
Status: <state>
Created: <createdAt>
Updated: <updatedAt>
Author: <author.name> (@<author.login>)
URL: <url>
Description
Description
<body>
<body>
Labels
Labels
<labels or "None">
<labels or "None">
Assignees
Assignees
<assignees or "None">
6. After all issues are saved, provide a summary of:
- Total number of issues loaded
- List of created files with their issue numbers and titles
IMPORTANT: Execute all steps in the correct order and ensure all issue data is properly formatted in the markdown files.<assignees or "None">
6. 所有Issue保存完成后,提供以下内容的汇总:
- 已加载的Issue总数
- 创建的文件列表,包含对应的Issue编号和标题
重要提示:请按正确顺序执行所有步骤,并确保所有Issue数据在Markdown文件中格式正确。