@roadiehq/backstage-plugin-bitbucket-pullrequest
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

Bitbucket PullRequest Plugin for Backstage

list of pull requests in the Bitbucket repo

Features

  • 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.

How to add Bitbucket PR plugin to Backstage app

  1. Install the plugin into Backstage.
cd packages/app
yarn add @roadiehq/backstage-plugin-bitbucket-pullrequest
  1. 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>
  1. 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
  1. Run backstage app with yarn start and navigate to services tabs.

How to use Bitbucket PR plugin in Backstage

  • Add annotation to the yaml config file of a component
metadata:
  annotations:
    bitbucket.com/project-slug: <example-bitbucket-project-name>/<example-bitbucket-repo-name>

Links


Roadie gives you a hassle-free, fully customisable SaaS Backstage. Find out more here: https://roadie.io.

/@roadiehq/backstage-plugin-bitbucket-pullrequest/

    Package Sidebar

    Install

    npm i @roadiehq/backstage-plugin-bitbucket-pullrequest

    Weekly Downloads

    24

    Version

    2.0.7

    License

    Apache-2.0

    Unpacked Size

    45.7 kB

    Total Files

    20

    Last publish

    Collaborators

    • roadiehq-david
    • iainbillett
    • brianfletcher
    • xantier
    • irma1203
    • roadie-bot
    • sblausten
    • kissmikijr
    • joao.roadie
    • gorkaroadie
    • samnixon87