4f3848e4c0
Signed-off-by: Talita Gregory Nunes Freire <talita.freire@dazn.com>
GitHub Pull Requests Board Plugin
The GitHub Pull Requests Board Plugin helps to visualise all Open Pull Requests related to the owned team repository.
It will help you and your team stay on top of open pull requests, hopefully reducing the time from open to merged. It's particularly useful when your team deals with many repositories.
Prerequisites
Getting started
The plugin exports the TeamPullRequestsBoard component which can be added to the Overview page ot the team at backstage/packages/app/src/components/catalog/EntityPage.tsx
import { TeamPullRequestsBoard } from '@backstage/plugin-github-pull-requests-board';
const groupPage = (
<EntityLayoutWrapper>
<EntityLayout.Route path="/" title="Overview">
<Grid container spacing={3}>
{entityWarningContent}
<Grid item xs={12} md={6}>
<EntityGroupProfileCard variant="gridItem" />
</Grid>
<Grid item xs={12} md={6}>
<EntityOwnershipCard
variant="gridItem"
entityFilterKind={customEntityFilterKind}
/>
</Grid>
<Grid item xs={12}>
<EntityMembersListCard />
</Grid>
<Grid item xs={12}>
<TeamPullRequestsBoard />
</Grid>
</Grid>
</EntityLayout.Route>
</EntityLayoutWrapper>
);
Or you can also import the TeamPullRequestsPage component which can be used to add a new page on the group page at backstage/packages/app/src/components/catalog/EntityPage.tsx
import { TeamPullRequestsPage } from '@backstage/plugin-github-pull-requests-board';
const groupPage = (
<EntityLayoutWrapper>
<EntityLayout.Route path="/" title="Overview">
<Grid container spacing={3}>
{entityWarningContent}
<Grid item xs={12} md={6}>
<EntityGroupProfileCard variant="gridItem" />
</Grid>
<Grid item xs={12} md={6}>
<EntityOwnershipCard
variant="gridItem"
entityFilterKind={customEntityFilterKind}
/>
</Grid>
<Grid item xs={12}>
<EntityMembersListCard />
</Grid>
</Grid>
</EntityLayout.Route>
<EntityLayout.Route path="/pull-requests" title="Pull Requests">
<TeamPullRequestsPage />
</EntityLayout.Route>
</EntityLayoutWrapper>;
)
