Skip to content

Commit e461f81

Browse files
authored
Merge branch 'main-enterprise' into fix/glob-pattern-matching
2 parents 99509e8 + d22c065 commit e461f81

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

lib/settings.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -884,21 +884,15 @@ ${this.results.reduce((x, y) => {
884884
const value = propertyFilter[name]
885885

886886
try {
887-
const query = `props.${name}.${value}`
887+
const query = `props.${name}:${value}`
888888
const encodedQuery = encodeURIComponent(query)
889-
890-
return this.github.paginate(
891-
this.github.repos.getCustomPropertiesValues,
892-
{
893-
org: organizationName,
894-
repository_query: encodedQuery,
895-
per_page: 100
896-
}
897-
)
889+
const options = this.github.request.endpoint((`/orgs/${organizationName}/properties/values?repository_query=${encodedQuery}`))
890+
return this.github.paginate(options)
898891
} catch (error) {
899892
throw new Error(`Failed to filter repositories for property ${name}: ${error.message}`)
900893
}
901894
}
895+
902896

903897
async getSubOrgRepositories (subOrgProperties) {
904898
const organizationName = this.repo.owner

0 commit comments

Comments
 (0)