Skip to content

Repository files navigation

GitHub Pull Requests Plugin for Backstage

a list of pull requests in the GitHub Pull Requests

Plugin Configuration Requirements

This plugin relies on the GitHub Authentication Provider for its access to GitHub.

Plugin Setup

  1. If you have standalone app (you didn't clone this repo), then do
cd packages/app
yarn add @roadiehq/backstage-plugin-github-pull-requests
  1. Add plugin to the list of plugins:
// packages/app/src/plugins.tsexport{pluginasGithubPullRequests}from'@roadiehq/backstage-plugin-github-pull-requests';
  1. 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>
  1. Run backstage app with yarn start and navigate to services tabs.

Widget setup

a list of pull requests in the GitHub Pull Requests

  1. You must install plugin by following the steps above to add widget to your Overview

  2. 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>);

Features

  • List Pull Requests for your repository, with filtering and search.
  • Show basic statistics widget about pull requests for your repository.

Links

Releases

Packages

Contributors

Languages