Skip to content

Commit

Permalink
add actions plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
portelagabriel committed Sep 21, 2024
1 parent 8c57430 commit 9e53d34
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/app/src/components/catalog/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ import {

import { TechDocsAddons } from '@backstage/plugin-techdocs-react';
import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';
import {
EntityGithubActionsContent,
isGithubActionsAvailable,
EntityRecentGithubActionsRunsCard
} from '@backstage/plugin-github-actions';

import {
EntityKubernetesContent,
Expand All @@ -71,14 +76,11 @@ const cicdContent = (
// This is an example of how you can implement your company's logic in entity page.
// You can for example enforce that all components of type 'service' should use GitHubActions
<EntitySwitch>
{/*
Here you can add support for different CI/CD services, for example
using @backstage-community/plugin-github-actions as follows:
{
<EntitySwitch.Case if={isGithubActionsAvailable}>
<EntityGithubActionsContent />
</EntitySwitch.Case>
*/}

}
<EntitySwitch.Case>
<EmptyState
title="No CI/CD available for this entity"
Expand Down Expand Up @@ -142,6 +144,9 @@ const overviewContent = (
<Grid item md={8} xs={12}>
<EntityHasSubcomponentsCard variant="gridItem" />
</Grid>
<Grid item sm={6}>
<EntityRecentGithubActionsRunsCard limit={4} variant="gridItem" />
</Grid>
</Grid>
);

Expand Down

0 comments on commit 9e53d34

Please sign in to comment.