@@ -283,7 +283,11 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
283283
284284 mux .HandleFunc ("/orgs/o/properties/values" , func (w http.ResponseWriter , r * http.Request ) {
285285 testMethod (t , r , "GET" )
286- testFormValues (t , r , values {"page" : "1" , "per_page" : "100" })
286+ testFormValues (t , r , values {
287+ "page" : "1" ,
288+ "per_page" : "100" ,
289+ "repository_query" : "repo:octocat/Hello-World" ,
290+ })
287291 fmt .Fprint (w , `[{
288292 "repository_id": 1296269,
289293 "repository_name": "Hello-World",
@@ -310,9 +314,12 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
310314 })
311315
312316 ctx := context .Background ()
313- repoPropertyValues , _ , err := client .Organizations .ListCustomPropertyValues (ctx , "o" , & ListOptions {
314- Page : 1 ,
315- PerPage : 100 ,
317+ repoPropertyValues , _ , err := client .Organizations .ListCustomPropertyValues (ctx , "o" , & ListCustomPropertyValuesOptions {
318+ ListOptions : ListOptions {
319+ Page : 1 ,
320+ PerPage : 100 ,
321+ },
322+ RepositoryQuery : "repo:octocat/Hello-World" ,
316323 })
317324 if err != nil {
318325 t .Errorf ("Organizations.ListCustomPropertyValues returned error: %v" , err )
@@ -351,7 +358,7 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
351358 const methodName = "ListCustomPropertyValues"
352359
353360 testBadOptions (t , methodName , func () (err error ) {
354- _ , _ , err = client .Organizations .ListCustomPropertyValues (ctx , "\n " , & ListOptions {})
361+ _ , _ , err = client .Organizations .ListCustomPropertyValues (ctx , "\n " , & ListCustomPropertyValuesOptions {})
355362 return err
356363 })
357364
0 commit comments