Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Add `dataType` in `gh project field-list --format json`

未關閉 適合新手
#7,917 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@csy20 已經在處理了。

開始於 2026年8月24日。

  • #7931 來自 @bronislav —— 已關閉,未合併
  • #14263 來自 @csy20 —— 已關閉,未合併

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
76/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github, go, graphql
領域
api, cli

研究方向

從 gh project field-list 命令開始,追蹤其 GraphQL ProjectV2FieldCommon 結果如何映射為 JSON。將 dataType 值新增至該輸出中,然後執行 field-list 命令,並確認 JSON 包含底層資料型別,同時現有的標準輸出仍然正確。

由索引模型根據 Issue 內容生成。

描述

enhancement gh-project help wanted candidate
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

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cli/cli 的其他 Issue

查看 cli/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。