feat(catalog-import): make catalog import branch name customizable
Signed-off-by: Mikko Korhonen <mikko.korhonen@gmail.com>
This commit is contained in:
Vendored
+7
@@ -28,6 +28,13 @@ export interface Config {
|
||||
* @visibility frontend
|
||||
*/
|
||||
entityFilename?: string;
|
||||
/**
|
||||
* A branch name used in pull request when registering existing component via UI
|
||||
* Valid git refname required, see: https://git-scm.com/docs/git-check-ref-format
|
||||
* Defaults to "backstage-integration"
|
||||
* @visibility frontend
|
||||
*/
|
||||
pullRequestBranchName?: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -303,7 +303,9 @@ the component will become available.\n\nFor more information, read an \
|
||||
baseUrl: githubIntegrationConfig.apiBaseUrl,
|
||||
});
|
||||
|
||||
const branchName = 'backstage-integration';
|
||||
const branchName =
|
||||
this.configApi.getOptionalString('catalog.pullRequestBranchName') ??
|
||||
'backstage-integration';
|
||||
const fileName =
|
||||
this.configApi.getOptionalString('catalog.import.entityFilename') ??
|
||||
'catalog-info.yaml';
|
||||
|
||||
Reference in New Issue
Block a user