Add `dataType` in `gh project field-list --format json`
維護者通常 1 天內回覆
評估
研究方向
從 gh project field-list 命令開始,追蹤其 GraphQL ProjectV2FieldCommon 結果如何映射為 JSON。將 dataType 值新增至該輸出中,然後執行 field-list 命令,並確認 JSON 包含底層資料型別,同時現有的標準輸出仍然正確。
由索引模型根據 Issue 內容生成。
描述
Describe the feature or problem you’d like to solve
In a script, I need to get the data type for fields so that the correct flag can be used with gh project item-edit (--date, --number, etc). The type field in the json output for gh project field-list is not enough for this as it only maps to ProjectV2Field or ProjectV2SingleSelectField. The GraphQL API has an enum field (dataType) on ProjectV2FieldCommon for this purpose, which gives the underlying data type.
Proposed solution
Add dataType field to the JSON output for gh project field-list.
Additional context
The standard output for gh project field-list has an existing column that's labeled DATA TYPE, even though it would be more accurately described as FIELD TYPE.
- 主要語言
- Go
- 星號
- 46.7k
- 分支
- 9.2k
- 平均合併
- 4 天 4 小時
- 30 天內合併 PR
- 55
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cli/cli 的其他 Issue
-
Help text for `gh ruleset view` and `gh search issues`/`prs` refers to flags these commands do not have可能已有人在做 @BagToad 於 1 天前認領。 未關閉needs-triage
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skill可能已有人在做 @MatiasOlivera 於 3 天前認領。 未關閉enhancement
難度 2/5 半天 新手友好度 62/100
維護者通常 1 天內回覆
-
`gh skill update` help incorrectly promises to preserve locally added files可能已有人在做 @rajpreetcodes 於 3 天前認領。 未關閉bug gh-skill priority-3
難度 1/5 1 小時以內 新手友好度 82/100
維護者通常 1 天內回覆
-
`gh` skill description does not tell agents when to use it, so it is skipped for tasks it covers可能已有人在做 @littfed 於 9 天前認領。 未關閉enhancement
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 1 天內回覆
-
gh pr close --comment silently discards the comment when PR is already closed or merged可能重新可做 @bunnysayzz 於 40 天前認領,目前沒有進行中的 PR。 未關閉bug gh-pr priority-2
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
相似的 Issue
-
agent-butler-finding chore
難度 1/5 1 小時以內 新手友好度 90/100
jordansmall/spindrift#5575 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
JakeChampion/lang#12684 ·
維護者通常 1 天內回覆
-
goose sub-agent runs are never indexed: blame finds no session for any file a `delegate` child wrote未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
C-bug O-community X-blathers-triaged
難度 2/5 1-3 小時 新手友好度 78/100
cockroachdb/cockroach#176150 · 1 則留言 ·
維護者通常 12 天內回覆
-
triage
難度 2/5 1-3 小時 新手友好度 86/100
wakatime/wakatime-cli#1649 ·
維護者通常 1 天內回覆