feat: add level config to catalog-backend-module-bitbucket-cloud plugin
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
@@ -59,6 +59,14 @@ export interface Config {
|
||||
* (Optional) TaskScheduleDefinition for the discovery.
|
||||
*/
|
||||
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
|
||||
/**
|
||||
* (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits.
|
||||
*
|
||||
* Possible values:
|
||||
* - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace.
|
||||
* - `project`: 1 API call per project, limited to 900 repositories per project.
|
||||
*/
|
||||
level?: 'workspace' | 'project';
|
||||
}
|
||||
| {
|
||||
[name: string]: {
|
||||
@@ -92,6 +100,14 @@ export interface Config {
|
||||
* (Optional) TaskScheduleDefinition for the discovery.
|
||||
*/
|
||||
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
|
||||
/**
|
||||
* (Optional) On what level discovery should take place, affecting Bitbucket Cloud API limits.
|
||||
*
|
||||
* Possible values:
|
||||
* - `workspace` (default): 1 API call per workspace, limited to 900 repositories per workspace.
|
||||
* - `project`: 1 API call per project, limited to 900 repositories per project.
|
||||
*/
|
||||
level?: 'workspace' | 'project';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user