Description
Add full CRUD resource for enterprise custom property schema definitions, plus a data source to list them.
Enterprise custom properties allow defining metadata fields that can be applied to all repositories across the enterprise.
go-github v84 API — Property Schema
func (s *EnterpriseService) GetAllCustomProperties(ctx context.Context, enterprise string) ([]*CustomProperty, *Response, error)
// GET /enterprises/{enterprise}/properties/schema
func (s *EnterpriseService) GetCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*CustomProperty, *Response, error)
// GET /enterprises/{enterprise}/properties/schema/{custom_property_name}
func (s *EnterpriseService) CreateOrUpdateCustomProperty(ctx context.Context, enterprise, customPropertyName string, property *CustomProperty) (*CustomProperty, *Response, error)
// PUT /enterprises/{enterprise}/properties/schema/{custom_property_name}
func (s *EnterpriseService) RemoveCustomProperty(ctx context.Context, enterprise, customPropertyName string) (*Response, error)
// DELETE /enterprises/{enterprise}/properties/schema/{custom_property_name}
go-github v84 API — Org Property Values
func (s *EnterpriseService) ListOrganizationCustomPropertyValues(ctx context.Context, enterprise string, opts *ListOptions) ([]*EnterpriseCustomPropertiesValues, *Response, error)
// GET /enterprises/{enterprise}/properties/values
func (s *EnterpriseService) CreateOrUpdateOrganizationCustomPropertyValues(ctx context.Context, enterprise string, values EnterpriseCustomPropertyValuesRequest) (*Response, error)
// PATCH /enterprises/{enterprise}/properties/values
Structs
type CustomProperty struct {
PropertyName *string
ValueType *string // "string", "single_select", "multi_select", "true_false"
Required *bool
DefaultValue interface{}
Description *string
AllowedValues []string
ValuesEditableBy *string // "org_actors", "org_and_repo_actors"
}
Acceptance Criteria
Description
Add full CRUD resource for enterprise custom property schema definitions, plus a data source to list them.
Enterprise custom properties allow defining metadata fields that can be applied to all repositories across the enterprise.
go-github v84 API — Property Schema
go-github v84 API — Org Property Values
Structs
Acceptance Criteria
github_enterprise_custom_property(schema property CRUD)github_enterprise_custom_properties(list all schema properties)github_enterprise_organization_property_values(list org values) — read-onlyenterprise_slug:property_nameprovider.go