chore: refactor declaration file

Signed-off-by: TANGUY Antoine <tanguyantoine@users.noreply.github.com>
This commit is contained in:
TANGUY Antoine
2023-04-05 13:28:19 +02:00
parent 8960902a4e
commit ebd0cdaf8f
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ This provider supports multiple organizations via unique provider IDs.
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`, `private`. If configured (non empty), only repositories with visibility present in the filter will be ingested
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`**:
+10 -2
View File
@@ -84,11 +84,11 @@ export interface Config {
*/
repository?: string;
/**
* (Optional) GitHub topic-based filters.
* (Optional) Allow Forks to be evaluated.
*/
allowForks?: boolean;
/**
* (Optional) Allow Forks to be evaluated.
* (Optional) GitHub topic-based filters.
*/
topic?: {
/**
@@ -108,6 +108,10 @@ export interface Config {
*/
exclude?: string[];
};
/**
* (Optional) GitHub repository visibility filter.
*/
visibility?: Array<'private' | 'internal' | 'public'>;
};
/**
* (Optional) TaskScheduleDefinition for the refresh.
@@ -169,6 +173,10 @@ export interface Config {
*/
exclude?: string[];
};
/**
* (Optional) GitHub repository visibility filter.
*/
visibility?: Array<'private' | 'internal' | 'public'>;
};
/**
* (Optional) TaskScheduleDefinition for the refresh.