This plugin relies on the GitHub Authentication Provider for its access to GitHub.
- If you have standalone app (you didn't clone this repo), then do
cd packages/app
yarn add @roadiehq/backstage-plugin-github-pull-requests- Add plugin to the list of plugins:
// packages/app/src/plugins.tsexport{pluginasGithubPullRequests}from'@roadiehq/backstage-plugin-github-pull-requests';- Add plugin API to your Backstage instance:
// packages/app/src/components/catalog/EntityPage.tsximport{EntityGithubPullRequestsContent,}from'@roadiehq/backstage-plugin-github-pull-requests';
...
constserviceEntityPage=(<EntityLayout>
...
<EntityLayout.Routepath="/pull-requests"title="Pull Requests"><EntityGithubPullRequestsContent/></EntityLayout.Route></EntityLayout>- Run backstage app with
yarn startand navigate to services tabs.
You must install plugin by following the steps above to add widget to your Overview
Add widget to your Overview tab:
// packages/app/src/components/catalog/EntityPage.tsximport{PullRequestsStatsCard}from'@roadiehq/backstage-plugin-github-pull-requests';
...
constOverviewContent=({ entity }: {entity: Entity})=>(<Gridcontainerspacing={3}>
...
<Griditemmd={6}><PullRequestsStatsCardentity={entity}/></Grid></Grid>);- List Pull Requests for your repository, with filtering and search.
- Show basic statistics widget about pull requests for your repository.
- Backstage
- Get hosted, managed Backstage for your company: https://roadie.io

