Merge pull request #2860 from RoadieHQ/lewtakm/add-pull-request-plugin

feat: Add pull request plugin
This commit is contained in:
Marcus Eide
2020-10-13 14:59:31 +02:00
committed by GitHub
3 changed files with 24 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'example-app': patch
---
Add Pull Request tab to components view.
@@ -62,6 +62,7 @@ import {
isPluginApplicableToEntity as isLighthouseAvailable,
} from '@backstage/plugin-lighthouse/';
import {
Router as PullRequestsRouter,
isPluginApplicableToEntity as isPullRequestsAvailable,
PullRequestsStatsCard,
} from '@roadiehq/backstage-plugin-github-pull-requests';
@@ -187,6 +188,11 @@ const ServiceEntityPage = ({ entity }: { entity: Entity }) => (
title="Kubernetes"
element={<KubernetesRouter entity={entity} />}
/>
<EntityPageLayout.Content
path="/pull-requests"
title="Pull Requests"
element={<PullRequestsRouter entity={entity} />}
/>
<EntityPageLayout.Content
path="/code-insights"
title="Code Insights"
@@ -227,6 +233,11 @@ const WebsiteEntityPage = ({ entity }: { entity: Entity }) => (
title="Kubernetes"
element={<KubernetesRouter entity={entity} />}
/>
<EntityPageLayout.Content
path="/pull-requests"
title="Pull Requests"
element={<PullRequestsRouter entity={entity} />}
/>
<EntityPageLayout.Content
path="/code-insights"
title="Code Insights"
+8 -8
View File
@@ -3668,15 +3668,15 @@
react-router "^6.0.0-beta.0"
react-use "^15.3.3"
"@roadiehq/backstage-plugin-github-pull-requests@^0.4.3":
version "0.4.3"
resolved "https://registry.npmjs.org/@roadiehq/backstage-plugin-github-pull-requests/-/backstage-plugin-github-pull-requests-0.4.3.tgz#720fd3c53ae8e61d8cfc727cda47e236af442b02"
integrity sha512-IJGMys5FJ512sitaMwWgACll3ZTuE3nZUX05MNXly/WXty6VBcfboiPbSB6IzLAEWMmvYlV1YUwwL7hAl/62GQ==
"@roadiehq/backstage-plugin-github-pull-requests@^0.5.1":
version "0.5.1"
resolved "https://registry.npmjs.org/@roadiehq/backstage-plugin-github-pull-requests/-/backstage-plugin-github-pull-requests-0.5.1.tgz#a0e3ef97de20fe87e55a26f0198d4ff80b6ecd8c"
integrity sha512-0Btg4jn7SWAp/0A7+xCuHxD4LKPoE3LSEkjMvLmWk/AIIvNA6uSWXeAv1nJZSe4JBV0Qzt+r+TS+hCcFR+vcMg==
dependencies:
"@backstage/catalog-model" "^0.1.1-alpha.23"
"@backstage/core" "^0.1.1-alpha.23"
"@backstage/plugin-catalog" "^0.1.1-alpha.23"
"@backstage/theme" "^0.1.1-alpha.23"
"@backstage/catalog-model" "^0.1.1-alpha.24"
"@backstage/core" "^0.1.1-alpha.24"
"@backstage/plugin-catalog" "^0.1.1-alpha.24"
"@backstage/theme" "^0.1.1-alpha.24"
"@material-ui/core" "^4.11.0"
"@material-ui/icons" "^4.9.1"
"@material-ui/lab" "^4.0.0-alpha.56"