- List of PR's from particular bitbucket repo
- Filtering like OPEN/CLOSED/MERGED/ALL PR and Search
- Able to view Creator name, Created date and last update etc.
- We can go to Particular PR by clicking ID.
- Install the plugin into Backstage.
cd packages/app
yarn add @roadiehq/backstage-plugin-bitbucket-pullrequest
- Add plugin API to your Backstage instance.
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityBitbucketPullRequestsContent } from '@roadiehq/backstage-plugin-bitbucket-pullrequest';
...
const serviceEntityPage = (
<EntityLayout>
...
<EntityLayout.Route path="/bitbucket-pullrequests" title="Bitbucket">
<EntityBitbucketPullRequestsContent />
</EntityLayout.Route>
...
</EntityLayout>
- Add proxy config
// app-config.yaml
proxy:
'/bitbucket/api':
target: https://bitbucket.org
changeOrigin: true
headers:
Authorization: Bearer ${BITBUCKET_TOKEN}
Accept: 'application/json'
Content-Type: 'application/json'
bitbucket:
# Defaults to /bitbucket/api and can be omitted if proxy is configured for that url
proxyPath: /bitbucket/api
- Run backstage app with
yarn start
and navigate to services tabs.
- Add annotation to the yaml config file of a component
metadata:
annotations:
bitbucket.com/project-slug: <example-bitbucket-project-name>/<example-bitbucket-repo-name>
- Backstage
- Get hosted, managed Backstage for your company: https://roadie.io
Roadie gives you a hassle-free, fully customisable SaaS Backstage. Find out more here: https://roadie.io.