@backstage-community/plugin-github-actions 0.7.2 → 0.9.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage-community/plugin-github-actions
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5ca4b72: Backstage version bump to v1.37.0
8
+
9
+ ## 0.8.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 435f142: Backstage version bump to v1.36.0
14
+
3
15
  ## 0.7.2
4
16
 
5
17
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import * as _backstage_catalog_model_index from '@backstage/catalog-model/index';
3
3
  import * as react from 'react';
4
- import * as _backstage_core_plugin_api_index from '@backstage/core-plugin-api/index';
4
+ import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
5
+ import * as _backstage_core_plugin_api__ from '@backstage/core-plugin-api/*';
5
6
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
6
7
 
7
8
  /**
@@ -15,51 +16,35 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
15
16
  name: undefined;
16
17
  config: {};
17
18
  configInput: {};
18
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api_index.AnyApiFactory, "core.api.factory", {}>;
19
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api__.AnyApiFactory, "core.api.factory", {}>;
19
20
  inputs: {};
20
21
  params: {
21
- factory: _backstage_core_plugin_api_index.AnyApiFactory;
22
+ factory: _backstage_core_plugin_api__.AnyApiFactory;
22
23
  };
23
24
  }>;
24
- "entity-card:github-actions/workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
25
- kind: "entity-card";
26
- name: "workflow-runs";
27
- config: {
28
- filter: string | undefined;
29
- };
30
- configInput: {
31
- filter?: string | undefined;
32
- };
33
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
34
- optional: true;
35
- }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
36
- optional: true;
37
- }>;
38
- inputs: {};
39
- params: {
40
- loader: () => Promise<JSX.Element>;
41
- filter?: string | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
42
- };
43
- }>;
44
- "entity-card:github-actions/latest-workflow-run": _backstage_frontend_plugin_api.ExtensionDefinition<{
25
+ "entity-card:github-actions/latest-branch-workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
45
26
  config: {
46
27
  props: {
47
28
  branch: string;
48
29
  };
49
30
  } & {
50
- filter: string | undefined;
31
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
32
+ type: "content" | "summary" | "info" | undefined;
51
33
  };
52
34
  configInput: {
53
35
  props?: {
54
36
  branch?: string | undefined;
55
37
  } | undefined;
56
38
  } & {
57
- filter?: string | undefined;
39
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
40
+ type?: "content" | "summary" | "info" | undefined;
58
41
  };
59
42
  output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
60
43
  optional: true;
61
44
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
62
45
  optional: true;
46
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
47
+ optional: true;
63
48
  }>;
64
49
  inputs: {
65
50
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
@@ -68,31 +53,36 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
68
53
  }>;
69
54
  };
70
55
  kind: "entity-card";
71
- name: "latest-workflow-run";
56
+ name: "latest-branch-workflow-runs";
72
57
  params: {
73
58
  loader: () => Promise<JSX.Element>;
74
- filter?: string | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
59
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
60
+ type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
75
61
  };
76
62
  }>;
77
- "entity-card:github-actions/latest-branch-workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
63
+ "entity-card:github-actions/latest-workflow-run": _backstage_frontend_plugin_api.ExtensionDefinition<{
78
64
  config: {
79
65
  props: {
80
66
  branch: string;
81
67
  };
82
68
  } & {
83
- filter: string | undefined;
69
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
70
+ type: "content" | "summary" | "info" | undefined;
84
71
  };
85
72
  configInput: {
86
73
  props?: {
87
74
  branch?: string | undefined;
88
75
  } | undefined;
89
76
  } & {
90
- filter?: string | undefined;
77
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
78
+ type?: "content" | "summary" | "info" | undefined;
91
79
  };
92
80
  output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
93
81
  optional: true;
94
82
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
95
83
  optional: true;
84
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
85
+ optional: true;
96
86
  }>;
97
87
  inputs: {
98
88
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
@@ -101,10 +91,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
101
91
  }>;
102
92
  };
103
93
  kind: "entity-card";
104
- name: "latest-branch-workflow-runs";
94
+ name: "latest-workflow-run";
105
95
  params: {
106
96
  loader: () => Promise<JSX.Element>;
107
- filter?: string | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
97
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
98
+ type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
108
99
  };
109
100
  }>;
110
101
  "entity-card:github-actions/recent-workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
@@ -115,7 +106,8 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
115
106
  limit?: number | undefined;
116
107
  };
117
108
  } & {
118
- filter: string | undefined;
109
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
110
+ type: "content" | "summary" | "info" | undefined;
119
111
  };
120
112
  configInput: {
121
113
  props?: {
@@ -124,12 +116,15 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
124
116
  limit?: number | undefined;
125
117
  } | undefined;
126
118
  } & {
127
- filter?: string | undefined;
119
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
120
+ type?: "content" | "summary" | "info" | undefined;
128
121
  };
129
122
  output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
130
123
  optional: true;
131
124
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
132
125
  optional: true;
126
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
127
+ optional: true;
133
128
  }>;
134
129
  inputs: {
135
130
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.AnyExtensionDataRef, {
@@ -141,7 +136,33 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
141
136
  name: "recent-workflow-runs";
142
137
  params: {
143
138
  loader: () => Promise<JSX.Element>;
144
- filter?: string | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
139
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
140
+ type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
141
+ };
142
+ }>;
143
+ "entity-card:github-actions/workflow-runs": _backstage_frontend_plugin_api.ExtensionDefinition<{
144
+ kind: "entity-card";
145
+ name: "workflow-runs";
146
+ config: {
147
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
148
+ type: "content" | "summary" | "info" | undefined;
149
+ };
150
+ configInput: {
151
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
152
+ type?: "content" | "summary" | "info" | undefined;
153
+ };
154
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
155
+ optional: true;
156
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
157
+ optional: true;
158
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
159
+ optional: true;
160
+ }>;
161
+ inputs: {};
162
+ params: {
163
+ loader: () => Promise<JSX.Element>;
164
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
165
+ type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
145
166
  };
146
167
  }>;
147
168
  "entity-content:github-actions/entity": _backstage_frontend_plugin_api.ExtensionDefinition<{
@@ -150,27 +171,32 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
150
171
  config: {
151
172
  path: string | undefined;
152
173
  title: string | undefined;
153
- filter: string | undefined;
174
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
175
+ group: string | false | undefined;
154
176
  };
155
177
  configInput: {
156
- filter?: string | undefined;
178
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
157
179
  title?: string | undefined;
158
180
  path?: string | undefined;
181
+ group?: string | false | undefined;
159
182
  };
160
- output: _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", {
183
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
161
184
  optional: true;
162
- }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
185
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
163
186
  optional: true;
164
187
  }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
165
188
  optional: true;
189
+ }> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-group", {
190
+ optional: true;
166
191
  }>;
167
192
  inputs: {};
168
193
  params: {
169
194
  loader: () => Promise<JSX.Element>;
170
195
  defaultPath: string;
171
196
  defaultTitle: string;
197
+ defaultGroup?: (string & {}) | "development" | "deployment" | "documentation" | "observability" | undefined;
172
198
  routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
173
- filter?: string | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
199
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
174
200
  };
175
201
  }>;
176
202
  }>;
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  /// <reference types="react" />
2
- import * as _backstage_core_components_index from '@backstage/core-components/index';
2
+ import * as _backstage_core_components__ from '@backstage/core-components/*';
3
3
  import * as react from 'react';
4
4
  import react__default from 'react';
5
5
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
6
6
  import { ConfigApi } from '@backstage/core-plugin-api';
7
- import * as _backstage_core_plugin_api_index from '@backstage/core-plugin-api/index';
7
+ import * as _backstage_core_plugin_api__ from '@backstage/core-plugin-api/*';
8
8
  import { RestEndpointMethodTypes } from '@octokit/rest';
9
9
  import { ScmAuthApi } from '@backstage/integration-react';
10
10
  import { Entity } from '@backstage/catalog-model';
11
11
  import { InfoCardVariants } from '@backstage/core-components';
12
12
 
13
13
  /** @public */
14
- declare const githubActionsApiRef: _backstage_core_plugin_api_index.ApiRef<GithubActionsApi>;
14
+ declare const githubActionsApiRef: _backstage_core_plugin_api__.ApiRef<GithubActionsApi>;
15
15
  /**
16
16
  * A client for fetching information about GitHub actions.
17
17
  *
@@ -192,19 +192,19 @@ declare const EntityGithubActionsContent: (props: RouterProps) => react.JSX.Elem
192
192
  /** @public */
193
193
  declare const EntityLatestGithubActionRunCard: (props: {
194
194
  branch?: string | undefined;
195
- variant?: _backstage_core_components_index.InfoCardVariants | undefined;
195
+ variant?: _backstage_core_components__.InfoCardVariants | undefined;
196
196
  }) => react.JSX.Element;
197
197
  /** @public */
198
198
  declare const EntityLatestGithubActionsForBranchCard: (props: {
199
199
  branch?: string | undefined;
200
- variant?: _backstage_core_components_index.InfoCardVariants | undefined;
200
+ variant?: _backstage_core_components__.InfoCardVariants | undefined;
201
201
  }) => react.JSX.Element;
202
202
  /** @public */
203
203
  declare const EntityRecentGithubActionsRunsCard: (props: {
204
204
  branch?: string | undefined;
205
205
  dense?: boolean | undefined;
206
206
  limit?: number | undefined;
207
- variant?: _backstage_core_components_index.InfoCardVariants | undefined;
207
+ variant?: _backstage_core_components__.InfoCardVariants | undefined;
208
208
  }) => react.JSX.Element;
209
209
 
210
210
  /** @public */
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-github-actions",
3
- "version": "0.7.2",
3
+ "version": "0.9.0",
4
4
  "description": "A Backstage plugin that integrates towards GitHub Actions",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
7
7
  "pluginId": "github-actions",
8
8
  "pluginPackages": [
9
9
  "@backstage-community/plugin-github-actions"
10
- ]
10
+ ],
11
+ "features": {
12
+ "./alpha": "@backstage/FrontendPlugin"
13
+ }
11
14
  },
12
15
  "publishConfig": {
13
16
  "access": "public"
@@ -28,7 +31,7 @@
28
31
  },
29
32
  "typesVersions": {
30
33
  "*": {
31
- "index": [
34
+ "*": [
32
35
  "dist/index.d.ts"
33
36
  ],
34
37
  "alpha": [
@@ -65,13 +68,13 @@
65
68
  },
66
69
  "dependencies": {
67
70
  "@backstage/catalog-model": "^1.7.3",
68
- "@backstage/core-compat-api": "^0.3.5",
69
- "@backstage/core-components": "^0.16.3",
70
- "@backstage/core-plugin-api": "^1.10.3",
71
- "@backstage/frontend-plugin-api": "^0.9.4",
72
- "@backstage/integration": "^1.16.1",
73
- "@backstage/integration-react": "^1.2.3",
74
- "@backstage/plugin-catalog-react": "^1.15.1",
71
+ "@backstage/core-compat-api": "^0.4.0",
72
+ "@backstage/core-components": "^0.17.0",
73
+ "@backstage/core-plugin-api": "^1.10.5",
74
+ "@backstage/frontend-plugin-api": "^0.10.0",
75
+ "@backstage/integration": "^1.16.2",
76
+ "@backstage/integration-react": "^1.2.5",
77
+ "@backstage/plugin-catalog-react": "^1.16.0",
75
78
  "@material-ui/core": "^4.12.2",
76
79
  "@material-ui/icons": "^4.9.1",
77
80
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -82,11 +85,11 @@
82
85
  "react-use": "^17.2.4"
83
86
  },
84
87
  "devDependencies": {
85
- "@backstage/cli": "^0.29.5",
86
- "@backstage/core-app-api": "^1.15.4",
87
- "@backstage/dev-utils": "^1.1.6",
88
- "@backstage/frontend-test-utils": "^0.2.5",
89
- "@backstage/test-utils": "^1.7.4",
88
+ "@backstage/cli": "^0.31.0",
89
+ "@backstage/core-app-api": "^1.16.0",
90
+ "@backstage/dev-utils": "^1.1.8",
91
+ "@backstage/frontend-test-utils": "^0.3.0",
92
+ "@backstage/test-utils": "^1.7.6",
90
93
  "@testing-library/dom": "^10.0.0",
91
94
  "@testing-library/jest-dom": "^6.0.0",
92
95
  "@testing-library/react": "^15.0.0",