Loading...
Loading...
Compare original and translation side by side
ghghAskUserQuestion.claude/skills/positron-qa-verify/output/detect_versions.shAskUserQuestion.claude/skills/positron-qa-verify/output/detect_versions.sh4567#4567https://github.com/posit-dev/positron/issues/45674567#4567https://github.com/posit-dev/positron/issues/4567gh issue viewgh issue viewgh pr listgh pr listgh pr diffgh pr diff#1234#1234.claude/skills/positron-qa-verify/output/.claude/skills/positron-qa-verify/output/detect_versions.shundefineddetect_versions.shundefined
For everything else (2+ scenarios, or any edge cases/regressions), I'll use a grouped format for better readability:
```markdown
对于其他情况(2个及以上场景,或包含任何边缘情况/回归检查),我会使用分组格式以提升可读性:
```markdown
**Note:** The verification comment uses plain bullets. Checkmarks (✓) and checkboxes (- [ ]) are only in the verification guide for visual organization and progress tracking during testing.
The template will be pre-filled with:
- Test scenarios extracted and condensed from the verification guide
- Grouped format used by default for better readability (unless only 1 scenario)
- **Positron Version automatically detected** from installed application (using `scripts/detect_versions.sh`)
- **OS Version automatically detected** from your system (using `scripts/detect_versions.sh`)
- Ready to paste - you can adjust versions if you tested on multiple systems
**Version detection is best-effort and silent:**
- **Only runs when you request the comment template** (not during initial guide generation)
- Uses the `detect_versions.sh` script with 3-second timeouts per detection
- If detection fails, empty values are used (you can fill them in manually)
- Never prompts or shows errors - fails fast and silent
**The template will be automatically copied to your clipboard** (on macOS/Linux using `pbcopy`/`xclip`, on Windows using `clip`) when you accept the offer, making it easy to paste directly into the GitHub issue after you complete testing.
**注意:** 验证评论使用普通项目符号。对勾(✓)和复选框(- [ ])仅用于验证指南中的视觉区分和测试进度跟踪。
模板将预填充以下内容:
- 从验证指南中提取并精简的测试场景
- 默认使用分组格式以提升可读性(除非只有1个场景)
- **Positron版本**从已安装应用中自动检测(使用`scripts/detect_versions.sh`)
- **OS版本**从你的系统中自动检测(使用`scripts/detect_versions.sh`)
- 可直接粘贴 - 如果你在多个系统上进行了测试,可以调整版本信息
**版本检测为尽力而为且静默执行:**
- **仅在你请求评论模板时运行**(初始指南生成时不运行)
- 使用`detect_versions.sh`脚本,每个检测有3秒超时
- 如果检测失败,使用空值(你可手动填写)
- 从不提示或显示错误 - 快速失败且静默
**当你同意后,模板将自动复制到剪贴板**(在macOS/Linux上使用`pbcopy`/`xclip`,在Windows上使用`clip`),方便你在完成测试后直接粘贴到GitHub Issue中。.claude/skills/positron-qa-verify/output/verify-issue-{number}-{timestamp}.mdverify-issue-4567-20260108-153045.md.claude/skills/positron-qa-verify/output/verify-issue-{number}-{timestamp}.mdverify-issue-4567-20260108-153045.mdUser: /qa-verify 4567用户: /qa-verify 4567gh issue view <number>gh pr list --search "<number>"gh issue view <number>gh pr list --search "<number>"--json additions,deletionsadditions + deletions< 500 linesundefined--json additions,deletionsadditions + deletions< 500行undefined
**Don't do this (SLOW):**
Always fetch diff, then check size after.
**Saves ~1-5 seconds** on large PRs by avoiding unnecessary diff downloads.
**错误做法(缓慢):**
始终获取差异内容,之后再检查大小。
**通过避免不必要的差异内容下载,在大型PR上节省约1-5秒**。scripts/analyze_issue.shscripts/analyze_issue.shundefinedundefined
The script:
- Fetches issue and PR data using `gh` CLI
- Extracts linked issues from comments
- Calculates PR size to determine if code review is needed
- Outputs structured JSON for parsing
该脚本:
- 使用`gh` CLI获取Issue和PR数据
- 从评论中提取关联Issue
- 计算PR大小以决定是否需要代码审查
- 输出结构化JSON以供解析scripts/detect_versions.shscripts/detect_versions.shundefinedundefined
The script:
- Detects Positron version and build number from `product.json`
- Detects OS version using platform-specific commands
- Has 3-second timeout per detection (max 4 seconds total)
- **Never prompts or shows errors** - always outputs valid JSON
- Fails gracefully with empty values if detection fails
Output format:
```json
{
"positronVersion": "2026.02.0",
"positronBuild": "10",
"osVersion": "macOS 26.2",
"detectionStatus": "success"
}"success""partial""failed"
该脚本:
- 从`product.json`中检测Positron版本和构建编号
- 使用平台特定命令检测OS版本
- 每个检测有3秒超时(总超时4秒)
- **从不提示或显示错误** - 始终输出有效的JSON
- 如果检测失败,优雅降级为使用空值
输出格式:
```json
{
"positronVersion": "2026.02.0",
"positronBuild": "10",
"osVersion": "macOS 26.2",
"detectionStatus": "success"
}"success""partial""failed"undefinedundefinedundefinedundefined/qa-verify [issue-number]/qa-verify [issue-number]