@backstage-community/plugin-github-actions 0.6.20 → 0.6.22
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 +13 -0
- package/README.md +5 -2
- package/alpha/package.json +1 -1
- package/dist/alpha/apis.esm.js +9 -7
- package/dist/alpha/apis.esm.js.map +1 -1
- package/dist/alpha/entityCards.esm.js +47 -35
- package/dist/alpha/entityCards.esm.js.map +1 -1
- package/dist/alpha/entityContent.esm.js +9 -6
- package/dist/alpha/entityContent.esm.js.map +1 -1
- package/dist/alpha.d.ts +125 -1
- package/dist/alpha.esm.js +2 -2
- package/dist/alpha.esm.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage-community/plugin-github-actions
|
|
2
2
|
|
|
3
|
+
## 0.6.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 45fd620: use new FE system syntax (replacing deprecated methods)
|
|
8
|
+
- 59b34f5: Backstage version bump to v1.30.2
|
|
9
|
+
|
|
10
|
+
## 0.6.21
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- a0591d5: Make entity cards/content appear on Components only by default in new FE system
|
|
15
|
+
|
|
3
16
|
## 0.6.20
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -115,7 +115,8 @@ export const app = createApp({
|
|
|
115
115
|
});
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
2. Next, enable your desired extensions in `app-config.yaml
|
|
118
|
+
2. Next, enable your desired extensions in `app-config.yaml`. By default, the content and cards will only appear on entities
|
|
119
|
+
that are Components. You can override that behavior here by adding a config block, demonstrated on the 'recent-workflow' card.
|
|
119
120
|
|
|
120
121
|
```yaml
|
|
121
122
|
app:
|
|
@@ -123,7 +124,9 @@ app:
|
|
|
123
124
|
- entity-content:github-actions/entity
|
|
124
125
|
- entity-card:github-actions/latest-workflow-run
|
|
125
126
|
- entity-card:github-actions/latest-branch-workflow-runs
|
|
126
|
-
- entity-card:github-actions/recent-workflow-runs
|
|
127
|
+
- entity-card:github-actions/recent-workflow-runs:
|
|
128
|
+
config:
|
|
129
|
+
filter: kind:component,api,group
|
|
127
130
|
```
|
|
128
131
|
|
|
129
132
|
3. Whichever extensions you've enabled should now appear in your entity page.
|
package/alpha/package.json
CHANGED
package/dist/alpha/apis.esm.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApiBlueprint, createApiFactory, configApiRef } from '@backstage/frontend-plugin-api';
|
|
2
2
|
import { scmAuthApiRef } from '@backstage/integration-react';
|
|
3
3
|
import { githubActionsApiRef } from '../api/GithubActionsApi.esm.js';
|
|
4
4
|
import { GithubActionsClient } from '../api/GithubActionsClient.esm.js';
|
|
5
5
|
|
|
6
|
-
const githubActionsApi =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const githubActionsApi = ApiBlueprint.make({
|
|
7
|
+
params: {
|
|
8
|
+
factory: createApiFactory({
|
|
9
|
+
api: githubActionsApiRef,
|
|
10
|
+
deps: { configApi: configApiRef, scmAuthApi: scmAuthApiRef },
|
|
11
|
+
factory: ({ configApi, scmAuthApi }) => new GithubActionsClient({ configApi, scmAuthApi })
|
|
12
|
+
})
|
|
13
|
+
}
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
export { githubActionsApi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.ts"],"sourcesContent":["import {\n configApiRef,\n
|
|
1
|
+
{"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.ts"],"sourcesContent":["import {\n configApiRef,\n ApiBlueprint,\n createApiFactory,\n} from '@backstage/frontend-plugin-api';\nimport { scmAuthApiRef } from '@backstage/integration-react';\nimport { githubActionsApiRef, GithubActionsClient } from '../api';\n\n/**\n * @alpha\n */\nexport const githubActionsApi = ApiBlueprint.make({\n params: {\n factory: createApiFactory({\n api: githubActionsApiRef,\n deps: { configApi: configApiRef, scmAuthApi: scmAuthApiRef },\n factory: ({ configApi, scmAuthApi }) =>\n new GithubActionsClient({ configApi, scmAuthApi }),\n }),\n },\n});\n"],"names":[],"mappings":";;;;;AAWa,MAAA,gBAAA,GAAmB,aAAa,IAAK,CAAA;AAAA,EAChD,MAAQ,EAAA;AAAA,IACN,SAAS,gBAAiB,CAAA;AAAA,MACxB,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA,EAAE,SAAW,EAAA,YAAA,EAAc,YAAY,aAAc,EAAA;AAAA,MAC3D,OAAA,EAAS,CAAC,EAAE,SAAW,EAAA,UAAA,EACrB,KAAA,IAAI,mBAAoB,CAAA,EAAE,SAAW,EAAA,UAAA,EAAY,CAAA;AAAA,KACpD,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
|
@@ -1,50 +1,62 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { createEntityCardExtension } from '@backstage/plugin-catalog-react/alpha';
|
|
2
|
+
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
3
|
|
|
5
|
-
const entityGithubActionsCard =
|
|
4
|
+
const entityGithubActionsCard = EntityCardBlueprint.make({
|
|
6
5
|
name: "workflow-runs",
|
|
7
|
-
|
|
6
|
+
params: {
|
|
7
|
+
filter: "kind:component",
|
|
8
|
+
loader: () => import('../components/Router.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.Router, { view: "cards" }))
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
|
-
const entityLatestGithubActionRunCard =
|
|
11
|
+
const entityLatestGithubActionRunCard = EntityCardBlueprint.makeWithOverrides({
|
|
10
12
|
name: "latest-workflow-run",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
props: z.object({
|
|
13
|
+
config: {
|
|
14
|
+
schema: {
|
|
15
|
+
props: (z) => z.object({
|
|
14
16
|
branch: z.string().default("master")
|
|
15
|
-
}).default({})
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
)
|
|
19
|
-
|
|
17
|
+
}).default({})
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
factory(originalFactory, { config }) {
|
|
21
|
+
return originalFactory({
|
|
22
|
+
filter: "kind:component",
|
|
23
|
+
loader: async () => import('../components/Cards/index.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.LatestWorkflowRunCard, { ...config.props }))
|
|
24
|
+
});
|
|
25
|
+
}
|
|
20
26
|
});
|
|
21
|
-
const entityLatestGithubActionsForBranchCard =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(z) => z.object({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
const entityLatestGithubActionsForBranchCard = EntityCardBlueprint.makeWithOverrides({
|
|
28
|
+
name: "latest-branch-workflow-runs",
|
|
29
|
+
config: {
|
|
30
|
+
schema: {
|
|
31
|
+
props: (z) => z.object({
|
|
32
|
+
branch: z.string().default("master")
|
|
33
|
+
}).default({})
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
factory(originalFactory, { config }) {
|
|
37
|
+
return originalFactory({
|
|
38
|
+
filter: "kind:component",
|
|
39
|
+
loader: async () => import('../components/Cards/index.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.LatestWorkflowsForBranchCard, { ...config.props }))
|
|
40
|
+
});
|
|
33
41
|
}
|
|
34
|
-
);
|
|
35
|
-
const entityRecentGithubActionsRunsCard =
|
|
42
|
+
});
|
|
43
|
+
const entityRecentGithubActionsRunsCard = EntityCardBlueprint.makeWithOverrides({
|
|
36
44
|
name: "recent-workflow-runs",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
props: z.object({
|
|
45
|
+
config: {
|
|
46
|
+
schema: {
|
|
47
|
+
props: (z) => z.object({
|
|
40
48
|
branch: z.string().default("master"),
|
|
41
49
|
dense: z.boolean().default(false),
|
|
42
50
|
limit: z.number().default(5).optional()
|
|
43
|
-
}).default({})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
)
|
|
47
|
-
|
|
51
|
+
}).default({})
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
factory(originalFactory, { config }) {
|
|
55
|
+
return originalFactory({
|
|
56
|
+
filter: "kind:component",
|
|
57
|
+
loader: async () => import('../components/Cards/index.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.RecentWorkflowRunsCard, { ...config.props }))
|
|
58
|
+
});
|
|
59
|
+
}
|
|
48
60
|
});
|
|
49
61
|
|
|
50
62
|
export { entityGithubActionsCard, entityLatestGithubActionRunCard, entityLatestGithubActionsForBranchCard, entityRecentGithubActionsRunsCard };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityCards.esm.js","sources":["../../src/alpha/entityCards.tsx"],"sourcesContent":["import React from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"entityCards.esm.js","sources":["../../src/alpha/entityCards.tsx"],"sourcesContent":["import React from 'react';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\n/**\n * @alpha\n */\nexport const entityGithubActionsCard = EntityCardBlueprint.make({\n name: 'workflow-runs',\n params: {\n filter: 'kind:component',\n loader: () =>\n import('../components/Router').then(m => <m.Router view=\"cards\" />),\n },\n});\n\n/**\n * @alpha\n */\nexport const entityLatestGithubActionRunCard =\n EntityCardBlueprint.makeWithOverrides({\n name: 'latest-workflow-run',\n config: {\n schema: {\n props: z =>\n z\n .object({\n branch: z.string().default('master'),\n })\n .default({}),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: 'kind:component',\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 config: {\n schema: {\n props: z =>\n z\n .object({\n branch: z.string().default('master'),\n })\n .default({}),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: 'kind:component',\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().default('master'),\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: 'kind:component',\n loader: async () =>\n import('../components/Cards').then(m => (\n <m.RecentWorkflowRunsCard {...config.props} />\n )),\n });\n },\n });\n"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
|
|
3
|
-
import {
|
|
3
|
+
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
4
|
import { rootRouteRef } from '../routes.esm.js';
|
|
5
5
|
|
|
6
|
-
const entityGithubActionsContent =
|
|
7
|
-
defaultPath: "github-actions",
|
|
8
|
-
defaultTitle: "GitHub Actions",
|
|
6
|
+
const entityGithubActionsContent = EntityContentBlueprint.make({
|
|
9
7
|
name: "entity",
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
params: {
|
|
9
|
+
defaultPath: "github-actions",
|
|
10
|
+
defaultTitle: "GitHub Actions",
|
|
11
|
+
filter: "kind:component",
|
|
12
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
13
|
+
loader: () => import('../components/Router.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.Router, { view: "table" }))
|
|
14
|
+
}
|
|
12
15
|
});
|
|
13
16
|
|
|
14
17
|
export { entityGithubActionsContent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["import React from 'react';\nimport { convertLegacyRouteRef } from '@backstage/core-compat-api';\nimport {
|
|
1
|
+
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["import React from 'react';\nimport { convertLegacyRouteRef } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { rootRouteRef } from '../routes';\n\n/**\n * @alpha\n */\nexport const entityGithubActionsContent = EntityContentBlueprint.make({\n name: 'entity',\n params: {\n defaultPath: 'github-actions',\n defaultTitle: 'GitHub Actions',\n filter: 'kind:component',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/Router').then(m => <m.Router view=\"table\" />),\n },\n});\n"],"names":[],"mappings":";;;;;AAQa,MAAA,0BAAA,GAA6B,uBAAuB,IAAK,CAAA;AAAA,EACpE,IAAM,EAAA,QAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,gBAAA;AAAA,IACb,YAAc,EAAA,gBAAA;AAAA,IACd,MAAQ,EAAA,gBAAA;AAAA,IACR,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,6BAAsB,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,qBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,MAAA,EAAF,EAAS,IAAA,EAAK,SAAQ,CAAE,CAAA;AAAA,GACtE;AACF,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
1
5
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
2
6
|
|
|
3
7
|
/**
|
|
@@ -5,6 +9,126 @@ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'
|
|
|
5
9
|
*/
|
|
6
10
|
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
|
|
7
11
|
entityContent: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
8
|
-
}, {}
|
|
12
|
+
}, {}, {
|
|
13
|
+
"api:github-actions": _backstage_frontend_plugin_api.ExtensionDefinition<{}, {}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>, {}, {
|
|
14
|
+
kind: "api";
|
|
15
|
+
namespace: undefined;
|
|
16
|
+
name: undefined;
|
|
17
|
+
}>;
|
|
18
|
+
"entity-card:github-actions/workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
19
|
+
filter: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
filter?: string | undefined;
|
|
22
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
23
|
+
optional: true;
|
|
24
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
25
|
+
optional: true;
|
|
26
|
+
}>, {}, {
|
|
27
|
+
kind: "entity-card";
|
|
28
|
+
namespace: undefined;
|
|
29
|
+
name: "workflow-runs";
|
|
30
|
+
}>;
|
|
31
|
+
"entity-card:github-actions/latest-workflow-run": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
32
|
+
props: {
|
|
33
|
+
branch: string;
|
|
34
|
+
};
|
|
35
|
+
} & {
|
|
36
|
+
filter: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
props?: {
|
|
39
|
+
branch?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
filter?: string | undefined;
|
|
43
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
44
|
+
optional: true;
|
|
45
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
46
|
+
optional: true;
|
|
47
|
+
}>, {
|
|
48
|
+
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
|
|
49
|
+
optional: boolean;
|
|
50
|
+
singleton: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
}, {
|
|
53
|
+
kind: "entity-card";
|
|
54
|
+
namespace: undefined;
|
|
55
|
+
name: "latest-workflow-run";
|
|
56
|
+
}>;
|
|
57
|
+
"entity-card:github-actions/latest-branch-workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
58
|
+
props: {
|
|
59
|
+
branch: string;
|
|
60
|
+
};
|
|
61
|
+
} & {
|
|
62
|
+
filter: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
props?: {
|
|
65
|
+
branch?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
filter?: string | undefined;
|
|
69
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
70
|
+
optional: true;
|
|
71
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
72
|
+
optional: true;
|
|
73
|
+
}>, {
|
|
74
|
+
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
|
|
75
|
+
optional: boolean;
|
|
76
|
+
singleton: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
}, {
|
|
79
|
+
kind: "entity-card";
|
|
80
|
+
namespace: undefined;
|
|
81
|
+
name: "latest-branch-workflow-runs";
|
|
82
|
+
}>;
|
|
83
|
+
"entity-card:github-actions/recent-workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
84
|
+
props: {
|
|
85
|
+
dense: boolean;
|
|
86
|
+
branch: string;
|
|
87
|
+
limit?: number | undefined;
|
|
88
|
+
};
|
|
89
|
+
} & {
|
|
90
|
+
filter: string | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
props?: {
|
|
93
|
+
dense?: boolean | undefined;
|
|
94
|
+
branch?: string | undefined;
|
|
95
|
+
limit?: number | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
} & {
|
|
98
|
+
filter?: string | undefined;
|
|
99
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
100
|
+
optional: true;
|
|
101
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
102
|
+
optional: true;
|
|
103
|
+
}>, {
|
|
104
|
+
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
|
|
105
|
+
optional: boolean;
|
|
106
|
+
singleton: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
}, {
|
|
109
|
+
kind: "entity-card";
|
|
110
|
+
namespace: undefined;
|
|
111
|
+
name: "recent-workflow-runs";
|
|
112
|
+
}>;
|
|
113
|
+
"entity-content:github-actions/entity": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
114
|
+
path: string | undefined;
|
|
115
|
+
title: string | undefined;
|
|
116
|
+
filter: string | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
filter?: string | undefined;
|
|
119
|
+
title?: string | undefined;
|
|
120
|
+
path?: string | undefined;
|
|
121
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
122
|
+
optional: true;
|
|
123
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
124
|
+
optional: true;
|
|
125
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
126
|
+
optional: true;
|
|
127
|
+
}>, {}, {
|
|
128
|
+
kind: "entity-content";
|
|
129
|
+
namespace: undefined;
|
|
130
|
+
name: "entity";
|
|
131
|
+
}>;
|
|
132
|
+
}>;
|
|
9
133
|
|
|
10
134
|
export { _default as default };
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
|
-
import {
|
|
2
|
+
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { githubActionsApi } from './alpha/apis.esm.js';
|
|
4
4
|
import { entityGithubActionsCard, 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
|
|
|
8
|
-
var alpha =
|
|
8
|
+
var alpha = createFrontendPlugin({
|
|
9
9
|
id: "github-actions",
|
|
10
10
|
routes: convertLegacyRouteRefs({
|
|
11
11
|
entityContent: rootRouteRef
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["import { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport {
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["import { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport {\n entityGithubActionsCard,\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 id: 'github-actions',\n routes: convertLegacyRouteRefs({\n entityContent: rootRouteRef,\n }),\n extensions: [\n entityGithubActionsContent,\n entityGithubActionsCard,\n entityLatestGithubActionRunCard,\n entityLatestGithubActionsForBranchCard,\n entityRecentGithubActionsRunsCard,\n githubActionsApi,\n ],\n});\n"],"names":[],"mappings":";;;;;;;AAeA,YAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,gBAAA;AAAA,EACJ,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,aAAe,EAAA,YAAA;AAAA,GAChB,CAAA;AAAA,EACD,UAAY,EAAA;AAAA,IACV,0BAAA;AAAA,IACA,uBAAA;AAAA,IACA,+BAAA;AAAA,IACA,sCAAA;AAAA,IACA,iCAAA;AAAA,IACA,gBAAA;AAAA,GACF;AACF,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-github-actions",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.22",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards GitHub Actions",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"test": "backstage-cli package test"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@backstage/catalog-model": "^1.
|
|
58
|
-
"@backstage/core-compat-api": "^0.2.
|
|
59
|
-
"@backstage/core-components": "^0.14.
|
|
57
|
+
"@backstage/catalog-model": "^1.6.0",
|
|
58
|
+
"@backstage/core-compat-api": "^0.2.8",
|
|
59
|
+
"@backstage/core-components": "^0.14.10",
|
|
60
60
|
"@backstage/core-plugin-api": "^1.9.3",
|
|
61
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
62
|
-
"@backstage/integration": "^1.
|
|
63
|
-
"@backstage/integration-react": "^1.1.
|
|
64
|
-
"@backstage/plugin-catalog-react": "^1.12.
|
|
61
|
+
"@backstage/frontend-plugin-api": "^0.7.0",
|
|
62
|
+
"@backstage/integration": "^1.14.0",
|
|
63
|
+
"@backstage/integration-react": "^1.1.30",
|
|
64
|
+
"@backstage/plugin-catalog-react": "^1.12.3",
|
|
65
65
|
"@material-ui/core": "^4.12.2",
|
|
66
66
|
"@material-ui/icons": "^4.9.1",
|
|
67
67
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"react-use": "^17.2.4"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@backstage/cli": "^0.
|
|
76
|
-
"@backstage/core-app-api": "^1.14.
|
|
77
|
-
"@backstage/dev-utils": "^1.0.
|
|
78
|
-
"@backstage/frontend-test-utils": "^0.1.
|
|
79
|
-
"@backstage/test-utils": "^1.5.
|
|
75
|
+
"@backstage/cli": "^0.27.0",
|
|
76
|
+
"@backstage/core-app-api": "^1.14.2",
|
|
77
|
+
"@backstage/dev-utils": "^1.0.37",
|
|
78
|
+
"@backstage/frontend-test-utils": "^0.1.12",
|
|
79
|
+
"@backstage/test-utils": "^1.5.10",
|
|
80
80
|
"@testing-library/dom": "^10.0.0",
|
|
81
81
|
"@testing-library/jest-dom": "^6.0.0",
|
|
82
82
|
"@testing-library/react": "^15.0.0",
|