google / google/go-github

Support require_explicit_values on custom properties

Open Beginner friendly
#4,559 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
11.3k
Forks
2.5k
Avg merge
1d 22h
Merged PRs (30d)
49

Description

## 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.

Contributor guide

Open the contributing guide

Research direction

Locate the CustomProperty type and its organization custom-property request methods, then inspect the existing unit tests for JSON decoding and batch or single-property request bodies. Add coverage for the optional require_explicit_values field in all three cases, and confirm the tests verify both reading and sending the boolean.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.