Repository navigation
docs: 坑速查新增#11——新版 gh item-edit 按名编辑须 --url 寻址(--id 禁配 --field) - #25
Merged
Merged
Conversation
实测背景:2026-11-12 jilin-flex-platform 飞书台账回填(8 条 issue 入板补字段), gh 2.103.3 下 `gh project item-edit --id <item> --field 名 --value 值` 报 `--field cannot be used with --id`。按名编辑须改用 `item-edit <编号> --owner @me --url <issue链接> --field 名 --value 值`; `--id` 只配 `--field-id`+`--project-id`(机器模式)。坑2 的 --value 通吃结论不变。 同步:坑2 加交叉引用;README/README.zh-CN 坑数 10→11;AGENTS.md 红线5 计数 9→11(坑#10 加入时漏更)。
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
来源
内部(2026-11-12 jilin-flex-platform 飞书台账回填实战)。
坑的现场
gh 2.103.3 下,按老命令设字段:
报错:
\--field` cannot be used with `--id`;use--urlto address the item when editing by name`。新版 gh 的两条寻址模式互斥:
gh project item-edit <编号> --owner @me --url <issue链接> --field 名 --value 值--id <item> --project-id <pj> --field-id <field> --single-select-option-id <opt>坑 2 的「
--value通吃所有字段类型」结论在 --url 模式下继续成立(本次 8 条 × 7 字段实测,含 TEXT/NUMBER/DATE/SINGLE_SELECT)。改动
references/pitfalls.md:新增坑 Agent 归因打点约定(issue 尾注「执行:<Agent 标识>」) #11;坑 第二个项目接入实战:中核建项+历史回填+首测评审 #2 补交叉引用;标题计数 10→11README.md/README.zh-CN.md:坑数同步 10→11AGENTS.md:红线 5 计数 9→11(坑 定位钉死:1+N 范式四法则 + ROADMAP 北极星 #10 加入时漏更的存量过期)验证