outside-to-issue
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOutside to Issue
外部评审转Issue
Transform outside-of-diff review files into properly formatted issue files for PR review tracking.
将diff范围外的评审文件转换为格式规范的Issue文件,用于PR评审跟踪。
Overview
概述
This skill converts review files from the directory into standardized issue files in the directory, following the project's issue template format. The transformation preserves all metadata and automatically handles issue numbering.
outside/issues/本Skill将目录下的评审文件转换为目录下的标准化Issue文件,符合项目的Issue模板格式。转换过程会保留所有元数据,并自动处理Issue编号。
outside/issues/Usage
使用方法
Run the transformation script for a specific PR:
bash
scripts/transform-outside-to-issues.sh --pr <PR_NUMBER>Example:
bash
scripts/transform-outside-to-issues.sh --pr 90为指定PR运行转换脚本:
bash
scripts/transform-outside-to-issues.sh --pr <PR_NUMBER>示例:
bash
scripts/transform-outside-to-issues.sh --pr 90What It Does
功能说明
- Finds all outside files: Reads all files from
.mddirectoryai-docs/reviews-pr-<PR>/outside/ - Determines starting issue number: Automatically finds the highest existing issue number and starts numbering from the next available number
- Transforms each file: Converts outside review files into issue format with:
- Issue number and title
- File path from the review
- Date and status
- Body section containing the review details
- Footer indicating it's from outside-of-diff review
- 查找所有外部文件:读取目录下的所有
ai-docs/reviews-pr-<PR>/outside/文件.md - 确定起始Issue编号:自动查找现有最高Issue编号,从下一个可用编号开始计数
- 转换每个文件:将外部评审文件转换为Issue格式,包含:
- Issue编号和标题
- 评审对应的文件路径
- 日期和状态
- 包含评审详情的正文部分
- 标明内容来自diff范围外评审的页脚
File Structure
文件结构
The script expects this directory structure:
ai-docs/reviews-pr-<PR>/
├── outside/
│ ├── 002-outside_01_<file-path>.md
│ ├── 002-outside_02_<file-path>.md
│ └── ...
└── issues/
├── 001-issue.md
├── 002-issue.md
└── ...脚本要求的目录结构如下:
ai-docs/reviews-pr-<PR>/
├── outside/
│ ├── 002-outside_01_<file-path>.md
│ ├── 002-outside_02_<file-path>.md
│ └── ...
└── issues/
├── 001-issue.md
├── 002-issue.md
└── ...Output Format
输出格式
Each transformed issue file follows this format:
markdown
undefined每个转换后的Issue文件遵循以下格式:
markdown
undefinedIssue <NUMBER> - Outside-of-diff
Issue <NUMBER> - Outside-of-diff
File:
Date: <date>
Status: <status>
<file-path>File:
Date: <date>
Status: <status>
<file-path>Body
Body
<review-details-content>
Generated from outside-of-diff review
undefined<review-details-content>
Generated from outside-of-diff review
undefinedExample
示例
For PR 90 with 18 outside files:
bash
scripts/transform-outside-to-issues.sh --pr 90Output:
Created: issues/026-issue.md
Created: issues/027-issue.md
...
Created: issues/043-issue.md
Transformation complete! Created issues starting from 26对于包含18个外部文件的PR 90:
bash
scripts/transform-outside-to-issues.sh --pr 90输出:
Created: issues/026-issue.md
Created: issues/027-issue.md
...
Created: issues/043-issue.md
Transformation complete! Created issues starting from 26Notes
注意事项
- The script automatically determines the starting issue number based on existing issues
- Files are processed in sorted order (alphabetically by filename)
- All metadata (file path, date, status) is preserved from the original outside file
- The Details section content becomes the Body section in the issue file
- The script creates the directory if it doesn't exist
issues/
- 脚本会基于现有Issue自动确定起始编号
- 文件按文件名升序顺序处理
- 所有元数据(文件路径、日期、状态)都会从原外部文件中保留
- 原详情部分内容会成为Issue文件的正文部分
- 如果目录不存在,脚本会自动创建
issues/
Related Commands
相关命令
- - Read and display PR review issues
read_pr_issues.sh - - Mark issues as resolved and update GitHub threads
resolve_pr_issues.sh - command - Fix issues for a given PR
pr-fix
- - 读取并展示PR评审Issue
read_pr_issues.sh - - 标记Issue为已解决并更新GitHub线程
resolve_pr_issues.sh - 命令 - 修复指定PR的Issue
pr-fix