github-writeback-tracking
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegithub-writeback-tracking
github-writeback-tracking
Closes the loop: once issues exist in GitHub, stamp their numbers and URLs back onto
the spreadsheet the findings came from. The link between a row and its issue is the
field, carried from [[extract-findings]] through .
keygithub_backlog_result.json完成闭环:当issue在GitHub中创建完成后,将其编号和URL标记回发现问题的原始电子表格中。表格行与对应issue的关联通过****字段实现,该字段从[[extract-findings]]传递到中。
keygithub_backlog_result.jsonWhen this applies
适用场景
- Spreadsheet sources only (/
.xlsx/.csv)..tsv - Doc / pasted-text sources: skip the script; just report the created issue links from in chat.
github_backlog_result.json - You need from [[github-create-issues]].
github_backlog_result.json
- 仅适用于电子表格数据源(/
.xlsx/.csv)。.tsv - 文档/粘贴文本数据源:跳过此脚本,直接在聊天中汇报中的已创建issue链接即可。
github_backlog_result.json - 你需要来自[[github-create-issues]]的文件。
github_backlog_result.json
Before you write
写入前准备
Back up the user's source file first — edits it in place:
github_tracking.pypowershell
Copy-Item "<file>.xlsx" "<file>.bak.xlsx"首先备份用户的源文件——会直接修改原文件:
github_tracking.pypowershell
Copy-Item "<file>.xlsx" "<file>.bak.xlsx"Step 1 — add tracking columns (idempotent)
步骤1 — 添加跟踪列(幂等操作)
Appends , , , after the last used column. Safe
to run repeatedly — columns that already exist are not duplicated.
Issue #Issue URLStateCreatedpowershell
python "${CLAUDE_PLUGIN_ROOT}/scripts/github_tracking.py" add-columns --source "<file>" --key "#"在最后一列之后追加、、、列。可安全重复运行——已存在的列不会被重复添加。
Issue #Issue URLStateCreatedpowershell
python "${CLAUDE_PLUGIN_ROOT}/scripts/github_tracking.py" add-columns --source "<file>" --key "#"Step 2 — write the issue links back (idempotent)
步骤2 — 将issue链接写回表格(幂等操作)
Matches each item's to the source key column and
fills the four tracking columns. Rows that already hold an are left as-is.
github_backlog_result.jsonkeyIssue #powershell
python "${CLAUDE_PLUGIN_ROOT}/scripts/github_tracking.py" writeback `
--source "<file>" `
--result "<workdir>/github_backlog_result.json" `
--key "#"Per row it writes: ← , ← ,
← , ← .
Issue #items[].numberIssue URLitems[].urlStateopenCreatedYYYY-MM-DD HH:MM将中每个条目的与源表格的关键字列进行匹配,并填充这四个跟踪列。已包含的行将保持不变。
github_backlog_result.jsonkeyIssue #powershell
python "${CLAUDE_PLUGIN_ROOT}/scripts/github_tracking.py" writeback `
--source "<file>" `
--result "<workdir>/github_backlog_result.json" `
--key "#"每行写入的内容为: ← , ← , ← , ← 。
Issue #items[].numberIssue URLitems[].urlStateopenCreatedYYYY-MM-DD HH:MMThe --key
must line up
--key--key
参数必须匹配
--keyThe column name must match the chosen in [[extract-findings]] and
the values in . Values are compared as strings.
--keykeyColumnkeygithub_backlog_result.jsonIf the script prints , the key in the result
doesn't match any value in that column — re-check and that the source hasn't
been re-sorted since extraction.
warn: key <x> not found in source--key--keykeyColumngithub_backlog_result.jsonkey如果脚本输出,说明结果文件中的key与源表格该列中的任何值都不匹配——请重新检查参数,以及源表格自提取后是否被重新排序。
warn: key <x> not found in source--key