Skip to content

Commit 7eadd53

Browse files
committed
feat: Add GitHub Workflows plugin
1 parent 33190b1 commit 7eadd53

File tree

3 files changed

+97
-5
lines changed

3 files changed

+97
-5
lines changed

packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@material-ui/icons": "^4.11.3",
4747
"@roadiehq/backstage-plugin-github-insights": "^2.5.1",
4848
"@roadiehq/backstage-plugin-security-insights": "^2.4.0",
49+
"@veecode-platform/backstage-plugin-github-workflows": "^1.1.0",
4950
"history": "^5.3.0",
5051
"react": "^18.3.1",
5152
"react-dom": "^18.3.1",

packages/app/src/components/catalog/EntityPage.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';
6060
import { EntitySonarQubeCard } from '@backstage-community/plugin-sonarqube';
6161
import { EntityGithubInsightsContent } from '@roadiehq/backstage-plugin-github-insights';
6262
import { EntitySecurityInsightsContent } from '@roadiehq/backstage-plugin-security-insights';
63+
import { isGithubWorkflowsAvailable, GithubWorkflowsContent } from '@veecode-platform/backstage-plugin-github-workflows'
6364

6465
import {
6566
EntityKubernetesContent,
@@ -84,7 +85,8 @@ const cicdContent = (
8485
// You can for example enforce that all components of type 'service' should use GitHubActions
8586
<EntitySwitch>
8687
<EntitySwitch.Case if={isGithubActionsAvailable}>
87-
<EntityGithubActionsContent />
88+
{/* <EntityGithubActionsContent /> */}
89+
<GithubWorkflowsContent/>
8890
</EntitySwitch.Case>
8991

9092
<EntitySwitch.Case>
@@ -155,6 +157,14 @@ const overviewContent = (
155157
</EntitySwitch.Case>
156158
</EntitySwitch>
157159

160+
<EntitySwitch>
161+
<EntitySwitch.Case if={isGithubWorkflowsAvailable}>
162+
<Grid item md={12} xs={12}>
163+
<GithubWorkflowsContent cards />
164+
</Grid>
165+
</EntitySwitch.Case>
166+
</EntitySwitch>
167+
158168
<Grid item md={4} xs={12}>
159169
<EntityLinksCard />
160170
</Grid>

yarn.lock

Lines changed: 85 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,7 +3737,7 @@ __metadata:
37373737
languageName: node
37383738
linkType: hard
37393739

3740-
"@backstage/core-components@npm:^0.15.1":
3740+
"@backstage/core-components@npm:^0.15.0, @backstage/core-components@npm:^0.15.1":
37413741
version: 0.15.1
37423742
resolution: "@backstage/core-components@npm:0.15.1"
37433743
dependencies:
@@ -4031,7 +4031,7 @@ __metadata:
40314031
languageName: node
40324032
linkType: hard
40334033

4034-
"@backstage/integration-react@npm:^1.2.0":
4034+
"@backstage/integration-react@npm:^1.1.31, @backstage/integration-react@npm:^1.2.0":
40354035
version: 1.2.0
40364036
resolution: "@backstage/integration-react@npm:1.2.0"
40374037
dependencies:
@@ -4830,7 +4830,7 @@ __metadata:
48304830
languageName: node
48314831
linkType: hard
48324832

4833-
"@backstage/plugin-catalog-react@npm:^1.14.0":
4833+
"@backstage/plugin-catalog-react@npm:^1.13.0, @backstage/plugin-catalog-react@npm:^1.14.0":
48344834
version: 1.14.0
48354835
resolution: "@backstage/plugin-catalog-react@npm:1.14.0"
48364836
dependencies:
@@ -6367,6 +6367,22 @@ __metadata:
63676367
languageName: node
63686368
linkType: hard
63696369

6370+
"@backstage/theme@npm:^0.5.7":
6371+
version: 0.5.7
6372+
resolution: "@backstage/theme@npm:0.5.7"
6373+
dependencies:
6374+
"@emotion/react": "npm:^11.10.5"
6375+
"@emotion/styled": "npm:^11.10.5"
6376+
"@mui/material": "npm:^5.12.2"
6377+
peerDependencies:
6378+
"@material-ui/core": ^4.12.2
6379+
"@types/react": ^16.13.1 || ^17.0.0 || ^18.0.0
6380+
react: ^16.13.1 || ^17.0.0 || ^18.0.0
6381+
react-dom: ^16.13.1 || ^17.0.0 || ^18.0.0
6382+
checksum: 10c0/56956c8e75f5c3eaedbbc1c3fb799477b17e03cbf3c63222a40a7eb519769a6490a221a006471fb5712f58bdd299d4f1a9dbd5e9131173c90089370535f4b937
6383+
languageName: node
6384+
linkType: hard
6385+
63706386
"@backstage/theme@npm:^0.6.0":
63716387
version: 0.6.0
63726388
resolution: "@backstage/theme@npm:0.6.0"
@@ -9317,7 +9333,7 @@ __metadata:
93179333
languageName: node
93189334
linkType: hard
93199335

9320-
"@octokit/core@npm:^5.0.0":
9336+
"@octokit/core@npm:^5.0.0, @octokit/core@npm:^5.0.2":
93219337
version: 5.2.0
93229338
resolution: "@octokit/core@npm:5.2.0"
93239339
dependencies:
@@ -9538,6 +9554,15 @@ __metadata:
95389554
languageName: node
95399555
linkType: hard
95409556

9557+
"@octokit/plugin-request-log@npm:^4.0.0":
9558+
version: 4.0.1
9559+
resolution: "@octokit/plugin-request-log@npm:4.0.1"
9560+
peerDependencies:
9561+
"@octokit/core": 5
9562+
checksum: 10c0/6f556f86258c5fbff9b1821075dc91137b7499f2ad0fd12391f0876064a6daa88abe1748336b2d483516505771d358aa15cb4bcdabc348a79e3d951fe9726798
9563+
languageName: node
9564+
linkType: hard
9565+
95419566
"@octokit/plugin-rest-endpoint-methods@npm:13.2.2":
95429567
version: 13.2.2
95439568
resolution: "@octokit/plugin-rest-endpoint-methods@npm:13.2.2"
@@ -9645,6 +9670,18 @@ __metadata:
96459670
languageName: node
96469671
linkType: hard
96479672

9673+
"@octokit/rest@npm:^20.1.0":
9674+
version: 20.1.1
9675+
resolution: "@octokit/rest@npm:20.1.1"
9676+
dependencies:
9677+
"@octokit/core": "npm:^5.0.2"
9678+
"@octokit/plugin-paginate-rest": "npm:11.3.1"
9679+
"@octokit/plugin-request-log": "npm:^4.0.0"
9680+
"@octokit/plugin-rest-endpoint-methods": "npm:13.2.2"
9681+
checksum: 10c0/9b62e0372381b548806edbd9e32059ebaec315ddf90e9c3df7e0f2bfab2fc938ca5c3b939035e082e245315b2359947f52f853027a8ca2510fddb79ff5cc9e8a
9682+
languageName: node
9683+
linkType: hard
9684+
96489685
"@octokit/tsconfig@npm:^1.0.2":
96499686
version: 1.0.2
96509687
resolution: "@octokit/tsconfig@npm:1.0.2"
@@ -14025,6 +14062,33 @@ __metadata:
1402514062
languageName: node
1402614063
linkType: hard
1402714064

14065+
"@veecode-platform/backstage-plugin-github-workflows@npm:^1.1.0":
14066+
version: 1.1.0
14067+
resolution: "@veecode-platform/backstage-plugin-github-workflows@npm:1.1.0"
14068+
dependencies:
14069+
"@backstage/catalog-model": "npm:^1.7.0"
14070+
"@backstage/core-components": "npm:^0.15.0"
14071+
"@backstage/core-plugin-api": "npm:^1.9.4"
14072+
"@backstage/integration": "npm:^1.15.0"
14073+
"@backstage/integration-react": "npm:^1.1.31"
14074+
"@backstage/plugin-catalog-react": "npm:^1.13.0"
14075+
"@backstage/theme": "npm:^0.5.7"
14076+
"@material-ui/core": "npm:^4.12.2"
14077+
"@material-ui/icons": "npm:^4.9.1"
14078+
"@material-ui/lab": "npm:4.0.0-alpha.61"
14079+
"@octokit/rest": "npm:^20.1.0"
14080+
dayjs: "npm:^1.11.9"
14081+
git-url-parse: "npm:^14.0.0"
14082+
js-yaml: "npm:^4.1.0"
14083+
react-icons: "npm:^5.2.1"
14084+
react-use: "npm:^17.2.4"
14085+
peerDependencies:
14086+
react: ^16.13.1 || ^17.0.0
14087+
react-router-dom: ^6.24.1
14088+
checksum: 10c0/35ec5d119076ebd7a675d12322097eccebcbfa7535af10e2701314c56fcb2901af5f8e4a6ff6059c129aae2560ee22dd7dcac8f02ebf7225656047e9a8fa55a4
14089+
languageName: node
14090+
linkType: hard
14091+
1402814092
"@webassemblyjs/ast@npm:1.12.1, @webassemblyjs/ast@npm:^1.12.1":
1402914093
version: 1.12.1
1403014094
resolution: "@webassemblyjs/ast@npm:1.12.1"
@@ -14682,6 +14746,7 @@ __metadata:
1468214746
"@testing-library/react": "npm:^14.3.1"
1468314747
"@testing-library/user-event": "npm:^14.5.2"
1468414748
"@types/react-dom": "npm:^18.3.1"
14749+
"@veecode-platform/backstage-plugin-github-workflows": "npm:^1.1.0"
1468514750
cross-env: "npm:^7.0.3"
1468614751
history: "npm:^5.3.0"
1468714752
react: "npm:^18.3.1"
@@ -17664,6 +17729,13 @@ __metadata:
1766417729
languageName: node
1766517730
linkType: hard
1766617731

17732+
"dayjs@npm:^1.11.9":
17733+
version: 1.11.13
17734+
resolution: "dayjs@npm:1.11.13"
17735+
checksum: 10c0/a3caf6ac8363c7dade9d1ee797848ddcf25c1ace68d9fe8678ecf8ba0675825430de5d793672ec87b24a69bf04a1544b176547b2539982275d5542a7955f35b7
17736+
languageName: node
17737+
linkType: hard
17738+
1766717739
"debounce-promise@npm:^3.1.2":
1766817740
version: 3.1.2
1766917741
resolution: "debounce-promise@npm:3.1.2"
@@ -28447,6 +28519,15 @@ __metadata:
2844728519
languageName: node
2844828520
linkType: hard
2844928521

28522+
"react-icons@npm:^5.2.1":
28523+
version: 5.3.0
28524+
resolution: "react-icons@npm:5.3.0"
28525+
peerDependencies:
28526+
react: "*"
28527+
checksum: 10c0/a53af0de558f0e2bacfbafc973aa8ca1e6a429006a2f83d70becad5be431726a691e096336c95949bb0d967587b145264c5046d2bc1518969dbae731855d0712
28528+
languageName: node
28529+
linkType: hard
28530+
2845028531
"react-idle-timer@npm:5.7.2":
2845128532
version: 5.7.2
2845228533
resolution: "react-idle-timer@npm:5.7.2"

0 commit comments

Comments
 (0)