load-issues

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Load all open issues from the current GitHub repository and save them as markdown files in the
./specs/issues/
directory.
Follow these steps:
  1. Use the gh CLI to list all open issues in the current repository:
    • Run
      gh issue list --limit 100
      to get all open issues
  2. 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
  3. Create the issues directory:
    • Run
      mkdir -p ./specs/issues
      to ensure the directory exists
  4. 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
  5. Use the following markdown template for each issue file:
markdown
undefined
从当前GitHub仓库加载所有未关闭的Issue,并将其保存为Markdown文件至
./specs/issues/
目录。
请遵循以下步骤:
  1. 使用gh CLI列出当前仓库中的所有未关闭Issue:
    • 运行
      gh issue list --limit 100
      获取所有未关闭Issue
  2. 为每个未关闭Issue获取详细信息:
    • 运行
      gh issue view <number> --json number,title,body,state,createdAt,updatedAt,author,labels,assignees,url
    • 提取所有相关元数据
  3. 创建Issue目录:
    • 运行
      mkdir -p ./specs/issues
      确保目录存在
  4. 将每个Issue保存为单独的Markdown文件:
    • 文件命名规则:
      <number-padded-to-3-digits>-<kebab-case-title>.md
    • 示例:
      007-make-code-review-trigger-on-sql-sh-changes.md
  5. 为每个Issue文件使用以下Markdown模板:
markdown
undefined

Issue #<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文件中格式正确。