Support require_explicit_values on custom properties
- 主要言語
- Go
- スター
- 11.3k
- フォーク
- 2.5k
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 53
説明
## Problem
GitHub's organization custom-property API returns and accepts the optional `require_explicit_values` boolean, but `CustomProperty` cannot read or send it. Clients therefore cannot preserve or manage whether repositories must set an explicit property value.
GitHub documents the field on the organization custom-property schema and create/update endpoints: https://docs.github.com/en/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
## Proposed change
Add an optional boolean field to `CustomProperty` and cover JSON decoding plus the batch and single-property request bodies with unit tests.
I plan to submit a focused patch.
コントリビューションガイド
調査の方向性
CustomProperty 型と、その組織のカスタムプロパティリクエストメソッドを見つけ、JSON デコードと、バッチまたは単一プロパティのリクエストボディに関する既存のユニットテストを調べます。3 つすべてのケースでオプションの require_explicit_values フィールドのカバレッジを追加し、テストでブール値の読み取りと送信の両方を検証していることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 活発
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 78/100