Support require_explicit_values on custom properties
- Vorherrschende Sprache
- Go
- Sterne
- 11.3k
- Forks
- 2.5k
- Ø Merge
- 1 T. 20 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
## 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.
Beitragsleitfaden
Rechercherichtung
Suchen Sie den Typ CustomProperty und seine Methoden für Organisationsanforderungen zu benutzerdefinierten Eigenschaften, und untersuchen Sie anschließend die vorhandenen Unit-Tests für JSON-Decodierung sowie Request-Bodies für mehrere oder einzelne Eigenschaften. Fügen Sie in allen drei Fällen Abdeckung für das optionale Feld require_explicit_values hinzu und bestätigen Sie, dass die Tests sowohl das Lesen als auch das Senden des booleschen Werts überprüfen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 78/100