fix: github actions subpage was working only for default service

This commit is contained in:
Tomek Fabisiak
2020-08-05 13:13:34 +02:00
parent 9d6a1c350a
commit 02f2bbf0bb
+5
View File
@@ -23,6 +23,10 @@ export const rootRouteRef = createRouteRef({
path: '/github-actions',
title: 'GitHub Actions',
});
export const projectRouteRef = createRouteRef({
path: '/github-actions/:kind/:optionalNamespaceAndName/',
title: 'GitHub Actions for project',
});
export const buildRouteRef = createRouteRef({
path: '/github-actions/workflow-run/:id',
title: 'GitHub Actions Workflow Run',
@@ -32,6 +36,7 @@ export const plugin = createPlugin({
id: 'github-actions',
register({ router }) {
router.addRoute(rootRouteRef, WorkflowRunsPage);
router.addRoute(projectRouteRef, WorkflowRunsPage);
router.addRoute(buildRouteRef, WorkflowRunDetailsPage);
},
});