diff --git a/lib/settings.js b/lib/settings.js index 591f2ad0..56e20e88 100644 --- a/lib/settings.js +++ b/lib/settings.js @@ -885,21 +885,15 @@ ${this.results.reduce((x, y) => { const value = propertyFilter[name] try { - const query = `props.${name}.${value}` + const query = `props.${name}:${value}` const encodedQuery = encodeURIComponent(query) - - return this.github.paginate( - this.github.repos.getCustomPropertiesValues, - { - org: organizationName, - repository_query: encodedQuery, - per_page: 100 - } - ) + const options = this.github.request.endpoint((`/orgs/${organizationName}/properties/values?repository_query=${encodedQuery}`)) + return this.github.paginate(options) } catch (error) { throw new Error(`Failed to filter repositories for property ${name}: ${error.message}`) } } + async getSubOrgRepositories (subOrgProperties) { const organizationName = this.repo.owner