Merge pull request #17101 from tanguyantoine/feat/github-catalog-visibility-filter

feat(catalog-backend-module-github): add visibility filter to github …
This commit is contained in:
Fredrik Adelöw
2023-04-18 13:10:40 +02:00
committed by GitHub
13 changed files with 125 additions and 6 deletions
+9
View File
@@ -162,6 +162,13 @@ catalog:
branch: 'main' # string
repository: '.*' # Regex
validateLocationsExist: true # optional boolean
visibilityProviderId:
organization: 'backstage' # string
catalogPath: '/catalog-info.yaml' # string
filters:
visibility:
- public
- internal
enterpriseProviderId:
host: ghe.example.net
organization: 'backstage' # string
@@ -193,6 +200,8 @@ This provider supports multiple organizations via unique provider IDs.
- **`exclude`** _(optional)_:
An array of strings used to filter out results based on their associated GitHub topics.
If configured, all repositories _except_ those with one (or more) topics(s) present in the exclusion filter will be ingested.
- **`visibility`** _(optional)_:
An array of strings used to filter results based on their visibility. Available options are `private`, `internal`, `public`. If configured (non empty), only repositories with visibility present in the filter will be ingested
- **`host`** _(optional)_:
The hostname of your GitHub Enterprise instance. It must match a host defined in [integrations.github](locations.md).
- **`organization`**: