a422d7ce5e
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.6 to 12.1.3. - [Release notes](https://github.com/testing-library/react-testing-library/releases) - [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/react-testing-library/compare/v11.2.6...v12.1.3) --- updated-dependencies: - dependency-name: "@testing-library/react" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
GitHub Deployments Plugin
The GitHub Deployments Plugin displays recent deployments from GitHub.
Prerequisites
Getting Started
- Install the GitHub Deployments Plugin.
# From your Backstage root directory
cd packages/app
yarn add @backstage/plugin-github-deployments
- Add the
EntityGithubDeploymentsCardto the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityGithubDeploymentsCard } from '@backstage/plugin-github-deployments';
const OverviewContent = () => (
<Grid container spacing={3} alignItems="stretch">
// ...
<Grid item xs={12} sm={6} md={4}>
<EntityGithubDeploymentsCard />
</Grid>
// ...
</Grid>
);
- Add the
github.com/project-slugannotation to yourcatalog-info.yamlfile:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: backstage
description: |
Backstage is an open-source developer portal that puts the developer experience first.
annotations:
github.com/project-slug: YOUR_PROJECT_SLUG
spec:
type: library
owner: CNCF
lifecycle: experimental
Self-hosted / Enterprise GitHub
The plugin will try to use backstage.io/source-location or backstage.io/managed-by-location
annotations to figure out the location of the source code.
- Add the
hostandapiBaseUrlto yourapp-config.yaml
# app-config.yaml
integrations:
github:
- host: 'your-github-host.com'
apiBaseUrl: 'https://api.your-github-host.com'
