@backstage-community/plugin-github-actions 0.15.0 → 0.16.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 +17 -0
- package/dist/alpha/entityCards.esm.js +3 -8
- package/dist/alpha/entityCards.esm.js.map +1 -1
- package/dist/alpha.d.ts +0 -25
- package/dist/alpha.esm.js +1 -2
- package/dist/alpha.esm.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage-community/plugin-github-actions
|
|
2
2
|
|
|
3
|
+
## 0.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f6232fc: Backstage version bump to v1.44.0
|
|
8
|
+
|
|
9
|
+
## 0.15.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ffb5929: The following changes where made to the alpha version of this plugin for the new frontend system:
|
|
14
|
+
|
|
15
|
+
Removed the `entityGitHubActionsCard` entirely as this card was mistakenly added as an entity card rather than content.
|
|
16
|
+
|
|
17
|
+
Disabled the `entityLatestGithubActionRunCard` and `entityLatestGithubActionsForBranchCard` to reduce visual clutter in NFS only.
|
|
18
|
+
These can be re-enabled by editing the page layout.
|
|
19
|
+
|
|
3
20
|
## 0.15.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -2,15 +2,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
3
3
|
import { isGithubActionsAvailable } from '../components/Router.esm.js';
|
|
4
4
|
|
|
5
|
-
const entityGithubActionsCard = EntityCardBlueprint.make({
|
|
6
|
-
name: "workflow-runs",
|
|
7
|
-
params: {
|
|
8
|
-
filter: isGithubActionsAvailable,
|
|
9
|
-
loader: () => import('../components/Router.esm.js').then((m) => /* @__PURE__ */ jsx(m.Router, { view: "cards" }))
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
5
|
const entityLatestGithubActionRunCard = EntityCardBlueprint.makeWithOverrides({
|
|
13
6
|
name: "latest-workflow-run",
|
|
7
|
+
disabled: true,
|
|
14
8
|
config: {
|
|
15
9
|
schema: {
|
|
16
10
|
props: (z) => z.object({
|
|
@@ -27,6 +21,7 @@ const entityLatestGithubActionRunCard = EntityCardBlueprint.makeWithOverrides({
|
|
|
27
21
|
});
|
|
28
22
|
const entityLatestGithubActionsForBranchCard = EntityCardBlueprint.makeWithOverrides({
|
|
29
23
|
name: "latest-branch-workflow-runs",
|
|
24
|
+
disabled: true,
|
|
30
25
|
config: {
|
|
31
26
|
schema: {
|
|
32
27
|
props: (z) => z.object({
|
|
@@ -60,5 +55,5 @@ const entityRecentGithubActionsRunsCard = EntityCardBlueprint.makeWithOverrides(
|
|
|
60
55
|
}
|
|
61
56
|
});
|
|
62
57
|
|
|
63
|
-
export {
|
|
58
|
+
export { entityLatestGithubActionRunCard, entityLatestGithubActionsForBranchCard, entityRecentGithubActionsRunsCard };
|
|
64
59
|
//# sourceMappingURL=entityCards.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityCards.esm.js","sources":["../../src/alpha/entityCards.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 { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isGithubActionsAvailable } from '../components/Router';\n\n/**\n * @alpha\n */\nexport const
|
|
1
|
+
{"version":3,"file":"entityCards.esm.js","sources":["../../src/alpha/entityCards.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 { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isGithubActionsAvailable } from '../components/Router';\n\n/**\n * @alpha\n */\nexport const entityLatestGithubActionRunCard =\n EntityCardBlueprint.makeWithOverrides({\n name: 'latest-workflow-run',\n disabled: true,\n config: {\n schema: {\n props: z =>\n z\n .object({\n branch: z.string().optional(),\n })\n .default({}),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: isGithubActionsAvailable,\n loader: async () =>\n import('../components/Cards').then(m => (\n <m.LatestWorkflowRunCard {...config.props} />\n )),\n });\n },\n });\n\n/**\n * @alpha\n */\nexport const entityLatestGithubActionsForBranchCard =\n EntityCardBlueprint.makeWithOverrides({\n name: 'latest-branch-workflow-runs',\n disabled: true,\n config: {\n schema: {\n props: z =>\n z\n .object({\n branch: z.string().optional(),\n })\n .default({}),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: isGithubActionsAvailable,\n loader: async () =>\n import('../components/Cards').then(m => (\n <m.LatestWorkflowsForBranchCard {...config.props} />\n )),\n });\n },\n });\n\n/**\n * @alpha\n */\nexport const entityRecentGithubActionsRunsCard =\n EntityCardBlueprint.makeWithOverrides({\n name: 'recent-workflow-runs',\n config: {\n schema: {\n props: z =>\n z\n .object({\n branch: z.string().optional(),\n dense: z.boolean().default(false),\n limit: z.number().default(5).optional(),\n })\n .default({}),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: isGithubActionsAvailable,\n loader: async () =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YACN,OAAO,kCAAqB,EAAE,IAAK,CAAA,CAAA,CAAA,qBAChC,GAAA,CAAA,CAAA,CAAE,4BAAF,EAAA,EAAgC,GAAG,MAAA,CAAO,OAAO,CACnD;AAAA,KACJ,CAAA;AAAA;AAEL,CAAC;AAKU,MAAA,iCAAA,GACX,oBAAoB,iBAAkB,CAAA;AAAA,EACpC,IAAM,EAAA,sBAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA;AAAA,MACN,KAAA,EAAO,CACL,CAAA,KAAA,CAAA,CACG,MAAO,CAAA;AAAA,QACN,MAAQ,EAAA,CAAA,CAAE,MAAO,EAAA,CAAE,QAAS,EAAA;AAAA,QAC5B,KAAO,EAAA,CAAA,CAAE,OAAQ,EAAA,CAAE,QAAQ,KAAK,CAAA;AAAA,QAChC,OAAO,CAAE,CAAA,MAAA,GAAS,OAAQ,CAAA,CAAC,EAAE,QAAS;AAAA,OACvC,CAAA,CACA,OAAQ,CAAA,EAAE;AAAA;AACjB,GACF;AAAA,EACA,OAAQ,CAAA,eAAA,EAAiB,EAAE,MAAA,EAAU,EAAA;AACnC,IAAA,OAAO,eAAgB,CAAA;AAAA,MACrB,MAAQ,EAAA,wBAAA;AAAA,MACR,MAAQ,EAAA,YACN,OAAO,kCAAqB,EAAE,IAAK,CAAA,CAAA,CAAA,qBAChC,GAAA,CAAA,CAAA,CAAE,sBAAF,EAAA,EAA0B,GAAG,MAAA,CAAO,OAAO,CAC7C;AAAA,KACJ,CAAA;AAAA;AAEL,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -146,31 +146,6 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
146
146
|
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
147
147
|
};
|
|
148
148
|
}>;
|
|
149
|
-
"entity-card:github-actions/workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
150
|
-
kind: "entity-card";
|
|
151
|
-
name: "workflow-runs";
|
|
152
|
-
config: {
|
|
153
|
-
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
154
|
-
type: "content" | "summary" | "info" | undefined;
|
|
155
|
-
};
|
|
156
|
-
configInput: {
|
|
157
|
-
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
158
|
-
type?: "content" | "summary" | "info" | undefined;
|
|
159
|
-
};
|
|
160
|
-
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
161
|
-
optional: true;
|
|
162
|
-
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
163
|
-
optional: true;
|
|
164
|
-
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
165
|
-
optional: true;
|
|
166
|
-
}>;
|
|
167
|
-
inputs: {};
|
|
168
|
-
params: {
|
|
169
|
-
loader: () => Promise<JSX.Element>;
|
|
170
|
-
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
|
|
171
|
-
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
172
|
-
};
|
|
173
|
-
}>;
|
|
174
149
|
"entity-content:github-actions/entity": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
175
150
|
kind: "entity-content";
|
|
176
151
|
name: "entity";
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
2
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { githubActionsApi } from './alpha/apis.esm.js';
|
|
4
|
-
import {
|
|
4
|
+
import { entityLatestGithubActionRunCard, entityLatestGithubActionsForBranchCard, entityRecentGithubActionsRunsCard } from './alpha/entityCards.esm.js';
|
|
5
5
|
import { entityGithubActionsContent } from './alpha/entityContent.esm.js';
|
|
6
6
|
import { rootRouteRef } from './routes.esm.js';
|
|
7
7
|
|
|
@@ -12,7 +12,6 @@ var alpha = createFrontendPlugin({
|
|
|
12
12
|
}),
|
|
13
13
|
extensions: [
|
|
14
14
|
entityGithubActionsContent,
|
|
15
|
-
entityGithubActionsCard,
|
|
16
15
|
entityLatestGithubActionRunCard,
|
|
17
16
|
entityLatestGithubActionsForBranchCard,
|
|
18
17
|
entityRecentGithubActionsRunsCard,
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"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 { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"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 { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n entityGithubActionsContent,\n entityLatestGithubActionRunCard,\n entityLatestGithubActionsForBranchCard,\n entityRecentGithubActionsRunsCard,\n githubActionsApi,\n} from './alpha/index';\nimport { rootRouteRef } from './routes';\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'github-actions',\n routes: convertLegacyRouteRefs({\n entityContent: rootRouteRef,\n }),\n extensions: [\n entityGithubActionsContent,\n entityLatestGithubActionRunCard,\n entityLatestGithubActionsForBranchCard,\n entityRecentGithubActionsRunsCard,\n githubActionsApi,\n ],\n});\n"],"names":[],"mappings":";;;;;;;AA6BA,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,gBAAA;AAAA,EACV,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,aAAe,EAAA;AAAA,GAChB,CAAA;AAAA,EACD,UAAY,EAAA;AAAA,IACV,0BAAA;AAAA,IACA,+BAAA;AAAA,IACA,sCAAA;AAAA,IACA,iCAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-github-actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards GitHub Actions",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@backstage/catalog-model": "^1.7.5",
|
|
71
|
-
"@backstage/core-compat-api": "^0.5.
|
|
72
|
-
"@backstage/core-components": "^0.18.
|
|
73
|
-
"@backstage/core-plugin-api": "^1.11.
|
|
74
|
-
"@backstage/frontend-plugin-api": "^0.12.
|
|
75
|
-
"@backstage/integration": "^1.18.
|
|
76
|
-
"@backstage/integration-react": "^1.2.
|
|
77
|
-
"@backstage/plugin-catalog-react": "^1.21.
|
|
71
|
+
"@backstage/core-compat-api": "^0.5.3",
|
|
72
|
+
"@backstage/core-components": "^0.18.2",
|
|
73
|
+
"@backstage/core-plugin-api": "^1.11.1",
|
|
74
|
+
"@backstage/frontend-plugin-api": "^0.12.1",
|
|
75
|
+
"@backstage/integration": "^1.18.1",
|
|
76
|
+
"@backstage/integration-react": "^1.2.11",
|
|
77
|
+
"@backstage/plugin-catalog-react": "^1.21.2",
|
|
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.
|
|
92
|
-
"@backstage/test-utils": "^1.7.
|
|
88
|
+
"@backstage/cli": "^0.34.4",
|
|
89
|
+
"@backstage/core-app-api": "^1.19.1",
|
|
90
|
+
"@backstage/dev-utils": "^1.1.15",
|
|
91
|
+
"@backstage/frontend-test-utils": "^0.4.0",
|
|
92
|
+
"@backstage/test-utils": "^1.7.12",
|
|
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",
|