Skip to content

Commit 1885015

Browse files
authored
Merge branch 'main-enterprise' into fix/handle-missing-repo-on-archive-plugin
2 parents b552612 + d22c065 commit 1885015

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
@@ -898,21 +898,15 @@ ${this.results.reduce((x, y) => {
898898
const value = propertyFilter[name]
899899

900900
try {
901-
const query = `props.${name}.${value}`
901+
const query = `props.${name}:${value}`
902902
const encodedQuery = encodeURIComponent(query)
903-
904-
return this.github.paginate(
905-
this.github.repos.getCustomPropertiesValues,
906-
{
907-
org: organizationName,
908-
repository_query: encodedQuery,
909-
per_page: 100
910-
}
911-
)
903+
const options = this.github.request.endpoint((`/orgs/${organizationName}/properties/values?repository_query=${encodedQuery}`))
904+
return this.github.paginate(options)
912905
} catch (error) {
913906
throw new Error(`Failed to filter repositories for property ${name}: ${error.message}`)
914907
}
915908
}
909+
916910

917911
async getSubOrgRepositories (subOrgProperties) {
918912
const organizationName = this.repo.owner

0 commit comments

Comments
 (0)