@backstage-community/plugin-github-actions 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/alpha/entityContent.esm.js +17 -9
- package/dist/alpha/entityContent.esm.js.map +1 -1
- package/dist/alpha.d.ts +22 -11
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage-community/plugin-github-actions
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 88fe001: Backstage version bump to v1.45.1
|
|
8
|
+
|
|
9
|
+
## 0.17.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 5724534: Added a config for the entity content extension to change component layout between table and cards.
|
|
14
|
+
|
|
15
|
+
**Breaking** Changed the name of the entity content extension from `entity-content:github-actions/github-actions-entity-content` to `entity-content:github-actions`.
|
|
16
|
+
|
|
3
17
|
## 0.16.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
|
|
2
|
+
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
3
3
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
4
|
import { isGithubActionsAvailable } from '../components/Router.esm.js';
|
|
5
5
|
import { rootRouteRef } from '../routes.esm.js';
|
|
6
6
|
|
|
7
|
-
const entityGithubActionsContent = EntityContentBlueprint.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
const entityGithubActionsContent = EntityContentBlueprint.makeWithOverrides({
|
|
8
|
+
config: {
|
|
9
|
+
schema: {
|
|
10
|
+
layout: (z) => z.enum(["table", "cards"]).default("table")
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
factory(originalFactory, { config }) {
|
|
14
|
+
return originalFactory({
|
|
15
|
+
path: "github-actions",
|
|
16
|
+
title: "GitHub Actions",
|
|
17
|
+
filter: isGithubActionsAvailable,
|
|
18
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
19
|
+
loader: () => import('../components/Router.esm.js').then(
|
|
20
|
+
(m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, { view: config.layout }))
|
|
21
|
+
)
|
|
22
|
+
});
|
|
15
23
|
}
|
|
16
24
|
});
|
|
17
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {
|
|
1
|
+
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isGithubActionsAvailable } from '../components/Router';\nimport { rootRouteRef } from '../routes';\n\n/**\n * @alpha\n */\nexport const entityGithubActionsContent =\n EntityContentBlueprint.makeWithOverrides({\n config: {\n schema: {\n layout: z => z.enum(['table', 'cards']).default('table'),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n path: 'github-actions',\n title: 'GitHub Actions',\n filter: isGithubActionsAvailable,\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/Router').then(m =>\n compatWrapper(<m.Router view={config.layout} />),\n ),\n });\n },\n });\n"],"names":[],"mappings":";;;;;;AA0Ba,MAAA,0BAAA,GACX,uBAAuB,iBAAkB,CAAA;AAAA,EACvC,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA;AAAA,MACN,MAAA,EAAQ,CAAK,CAAA,KAAA,CAAA,CAAE,IAAK,CAAA,CAAC,SAAS,OAAO,CAAC,CAAE,CAAA,OAAA,CAAQ,OAAO;AAAA;AACzD,GACF;AAAA,EACA,OAAQ,CAAA,eAAA,EAAiB,EAAE,MAAA,EAAU,EAAA;AACnC,IAAA,OAAO,eAAgB,CAAA;AAAA,MACrB,IAAM,EAAA,gBAAA;AAAA,MACN,KAAO,EAAA,gBAAA;AAAA,MACP,MAAQ,EAAA,wBAAA;AAAA,MACR,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,MAC5C,MAAQ,EAAA,MACN,OAAO,6BAAsB,CAAE,CAAA,IAAA;AAAA,QAAK,CAAA,CAAA,KAClC,8BAAe,GAAA,CAAA,CAAA,CAAE,QAAF,EAAS,IAAA,EAAM,MAAO,CAAA,MAAA,EAAQ,CAAE;AAAA;AACjD,KACH,CAAA;AAAA;AAEL,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'
|
|
|
11
11
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
12
12
|
entityContent: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
13
13
|
}, {}, {
|
|
14
|
-
"api:github-actions": _backstage_frontend_plugin_api.
|
|
14
|
+
"api:github-actions": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
15
15
|
kind: "api";
|
|
16
16
|
name: undefined;
|
|
17
17
|
config: {};
|
|
@@ -22,7 +22,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
22
22
|
[x: string]: unknown;
|
|
23
23
|
}>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
|
|
24
24
|
}>;
|
|
25
|
-
"entity-card:github-actions/latest-branch-workflow-runs": _backstage_frontend_plugin_api.
|
|
25
|
+
"entity-card:github-actions/latest-branch-workflow-runs": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
26
26
|
config: {
|
|
27
27
|
props: {
|
|
28
28
|
branch?: string | undefined;
|
|
@@ -50,8 +50,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
50
50
|
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef<unknown, string, {
|
|
51
51
|
optional?: true | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
optional: boolean;
|
|
54
53
|
singleton: boolean;
|
|
54
|
+
optional: boolean;
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
57
|
kind: "entity-card";
|
|
@@ -62,7 +62,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
62
62
|
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
63
63
|
};
|
|
64
64
|
}>;
|
|
65
|
-
"entity-card:github-actions/latest-workflow-run": _backstage_frontend_plugin_api.
|
|
65
|
+
"entity-card:github-actions/latest-workflow-run": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
66
66
|
config: {
|
|
67
67
|
props: {
|
|
68
68
|
branch?: string | undefined;
|
|
@@ -90,8 +90,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
90
90
|
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef<unknown, string, {
|
|
91
91
|
optional?: true | undefined;
|
|
92
92
|
}>, {
|
|
93
|
-
optional: boolean;
|
|
94
93
|
singleton: boolean;
|
|
94
|
+
optional: boolean;
|
|
95
95
|
}>;
|
|
96
96
|
};
|
|
97
97
|
kind: "entity-card";
|
|
@@ -102,7 +102,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
102
102
|
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
|
-
"entity-card:github-actions/recent-workflow-runs": _backstage_frontend_plugin_api.
|
|
105
|
+
"entity-card:github-actions/recent-workflow-runs": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
106
106
|
config: {
|
|
107
107
|
props: {
|
|
108
108
|
dense: boolean;
|
|
@@ -134,8 +134,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
134
134
|
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef<unknown, string, {
|
|
135
135
|
optional?: true | undefined;
|
|
136
136
|
}>, {
|
|
137
|
-
optional: boolean;
|
|
138
137
|
singleton: boolean;
|
|
138
|
+
optional: boolean;
|
|
139
139
|
}>;
|
|
140
140
|
};
|
|
141
141
|
kind: "entity-card";
|
|
@@ -146,16 +146,18 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
146
146
|
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
147
147
|
};
|
|
148
148
|
}>;
|
|
149
|
-
"entity-content:github-actions
|
|
150
|
-
kind: "entity-content";
|
|
151
|
-
name: "entity";
|
|
149
|
+
"entity-content:github-actions": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
152
150
|
config: {
|
|
151
|
+
layout: "table" | "cards";
|
|
152
|
+
} & {
|
|
153
153
|
path: string | undefined;
|
|
154
154
|
title: string | undefined;
|
|
155
155
|
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
156
156
|
group: string | false | undefined;
|
|
157
157
|
};
|
|
158
158
|
configInput: {
|
|
159
|
+
layout?: "table" | "cards" | undefined;
|
|
160
|
+
} & {
|
|
159
161
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
160
162
|
title?: string | undefined;
|
|
161
163
|
path?: string | undefined;
|
|
@@ -170,7 +172,16 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
170
172
|
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
171
173
|
optional: true;
|
|
172
174
|
}>;
|
|
173
|
-
inputs: {
|
|
175
|
+
inputs: {
|
|
176
|
+
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef<unknown, string, {
|
|
177
|
+
optional?: true | undefined;
|
|
178
|
+
}>, {
|
|
179
|
+
singleton: boolean;
|
|
180
|
+
optional: boolean;
|
|
181
|
+
}>;
|
|
182
|
+
};
|
|
183
|
+
kind: "entity-content";
|
|
184
|
+
name: undefined;
|
|
174
185
|
params: {
|
|
175
186
|
defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
|
|
176
187
|
path: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-github-actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards GitHub Actions",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"test": "backstage-cli package test"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@backstage/catalog-model": "^1.7.
|
|
71
|
-
"@backstage/core-compat-api": "^0.5.
|
|
72
|
-
"@backstage/core-components": "^0.18.
|
|
73
|
-
"@backstage/core-plugin-api": "^1.
|
|
74
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
75
|
-
"@backstage/integration": "^1.18.
|
|
76
|
-
"@backstage/integration-react": "^1.2.
|
|
77
|
-
"@backstage/plugin-catalog-react": "^1.21.
|
|
70
|
+
"@backstage/catalog-model": "^1.7.6",
|
|
71
|
+
"@backstage/core-compat-api": "^0.5.4",
|
|
72
|
+
"@backstage/core-components": "^0.18.3",
|
|
73
|
+
"@backstage/core-plugin-api": "^1.12.0",
|
|
74
|
+
"@backstage/frontend-plugin-api": "^0.13.1",
|
|
75
|
+
"@backstage/integration": "^1.18.2",
|
|
76
|
+
"@backstage/integration-react": "^1.2.12",
|
|
77
|
+
"@backstage/plugin-catalog-react": "^1.21.3",
|
|
78
78
|
"@material-ui/core": "^4.12.2",
|
|
79
79
|
"@material-ui/icons": "^4.9.1",
|
|
80
80
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"react-use": "^17.2.4"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@backstage/cli": "^0.34.
|
|
89
|
-
"@backstage/core-app-api": "^1.19.
|
|
90
|
-
"@backstage/dev-utils": "^1.1.
|
|
91
|
-
"@backstage/frontend-test-utils": "^0.4.
|
|
92
|
-
"@backstage/test-utils": "^1.7.
|
|
88
|
+
"@backstage/cli": "^0.34.5",
|
|
89
|
+
"@backstage/core-app-api": "^1.19.2",
|
|
90
|
+
"@backstage/dev-utils": "^1.1.17",
|
|
91
|
+
"@backstage/frontend-test-utils": "^0.4.1",
|
|
92
|
+
"@backstage/test-utils": "^1.7.13",
|
|
93
93
|
"@testing-library/dom": "^10.0.0",
|
|
94
94
|
"@testing-library/jest-dom": "^6.0.0",
|
|
95
95
|
"@testing-library/react": "^15.0.0",
|