Skip to content

Commit d3d65e6

Browse files
committed
Rename CustomPropertyValuesListOptions to ListCustomPropertyValuesOptions for consistent naming
1 parent 06ac6a5 commit d3d65e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

github/orgs_properties.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type CustomPropertyValue struct {
4848
Value any `json:"value"`
4949
}
5050

51-
// CustomPropertyValuesListOptions specifies the optional parameters to the
51+
// ListCustomPropertyValuesOptions specifies the optional parameters to the
5252
// OrganizationsService.ListCustomPropertyValues method.
5353
type ListCustomPropertyValuesOptions struct {
5454
RepositoryQuery string `url:"repository_query,omitempty"`
@@ -204,7 +204,7 @@ func (s *OrganizationsService) RemoveCustomProperty(ctx context.Context, org, cu
204204
// GitHub API docs: https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
205205
//
206206
//meta:operation GET /orgs/{org}/properties/values
207-
func (s *OrganizationsService) ListCustomPropertyValues(ctx context.Context, org string, opts *CustomPropertyValuesListOptions) ([]*RepoCustomPropertyValue, *Response, error) {
207+
func (s *OrganizationsService) ListCustomPropertyValues(ctx context.Context, org string, opts *ListCustomPropertyValuesOptions) ([]*RepoCustomPropertyValue, *Response, error) {
208208
u := fmt.Sprintf("orgs/%v/properties/values", org)
209209
u, err := addOptions(u, opts)
210210
if err != nil {

github/orgs_properties_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
314314
})
315315

316316
ctx := context.Background()
317-
repoPropertyValues, _, err := client.Organizations.ListCustomPropertyValues(ctx, "o", &CustomPropertyValuesListOptions{
317+
repoPropertyValues, _, err := client.Organizations.ListCustomPropertyValues(ctx, "o", &ListCustomPropertyValuesOptions{
318318
ListOptions: ListOptions{
319319
Page: 1,
320320
PerPage: 100,
@@ -358,7 +358,7 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
358358
const methodName = "ListCustomPropertyValues"
359359

360360
testBadOptions(t, methodName, func() (err error) {
361-
_, _, err = client.Organizations.ListCustomPropertyValues(ctx, "\n", &CustomPropertyValuesListOptions{})
361+
_, _, err = client.Organizations.ListCustomPropertyValues(ctx, "\n", &ListCustomPropertyValuesOptions{})
362362
return err
363363
})
364364

0 commit comments

Comments
 (0)