chore: add to the default router
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { InputError } from '@backstage/backend-common';
|
||||
|
||||
export const parseRepoUrl = (repoUrl: string) => {
|
||||
let parsed;
|
||||
try {
|
||||
|
||||
@@ -58,6 +58,9 @@ import {
|
||||
createFetchPlainAction,
|
||||
createFetchCookiecutterAction,
|
||||
createPublishGithubAction,
|
||||
createPublishBitbucketAction,
|
||||
createPublishAzureAction,
|
||||
createPublishGitlabAction,
|
||||
createCatalogRegisterAction,
|
||||
} from '../scaffolder/actions/builtin';
|
||||
import { ScmIntegrations } from '@backstage/integration';
|
||||
@@ -152,6 +155,25 @@ export async function createRouter(
|
||||
repoVisibility: 'public',
|
||||
}),
|
||||
);
|
||||
actionRegistry.register(
|
||||
createPublishGitlabAction({
|
||||
integrations,
|
||||
repoVisibility: 'public',
|
||||
}),
|
||||
);
|
||||
|
||||
actionRegistry.register(
|
||||
createPublishBitbucketAction({
|
||||
integrations,
|
||||
repoVisibility: 'public',
|
||||
}),
|
||||
);
|
||||
|
||||
actionRegistry.register(
|
||||
createPublishAzureAction({
|
||||
integrations,
|
||||
}),
|
||||
);
|
||||
|
||||
actionRegistry.register(
|
||||
createCatalogRegisterAction({ catalogClient, integrations }),
|
||||
|
||||
Reference in New Issue
Block a user