chore: add to the default router

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
blam
2021-02-25 09:21:31 +01:00
committed by Johan Haals
parent 8c1e321684
commit c19f41494d
2 changed files with 23 additions and 0 deletions
@@ -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 }),