@backstage/plugin-catalog-backend-module-github 0.0.0-nightly-20230103022231 → 0.0.0-nightly-20230105022800

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,23 +1,57 @@
1
1
  # @backstage/plugin-catalog-backend-module-github
2
2
 
3
- ## 0.0.0-nightly-20230103022231
3
+ ## 0.0.0-nightly-20230105022800
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies
8
- - @backstage/catalog-model@0.0.0-nightly-20230103022231
9
- - @backstage/catalog-client@0.0.0-nightly-20230103022231
10
- - @backstage/plugin-catalog-backend@0.0.0-nightly-20230103022231
11
- - @backstage/config@0.0.0-nightly-20230103022231
12
- - @backstage/backend-common@0.0.0-nightly-20230103022231
13
- - @backstage/backend-plugin-api@0.0.0-nightly-20230103022231
14
- - @backstage/backend-tasks@0.0.0-nightly-20230103022231
7
+ - 427d8f4411: Added support for event based updates in the `GithubOrgEntityProvider`!
8
+ Based on webhook events from GitHub the affected `User` or `Group` entity will be refreshed.
9
+ This includes adding new entities, refreshing existing ones, and removing obsolete ones.
10
+
11
+ Please find more information at
12
+ https://backstage.io/docs/integrations/github/org#installation-with-events-support
13
+
14
+ - 8e06f3cf00: Switched imports of `loggerToWinstonLogger` to `@backstage/backend-common`.
15
+ - Updated dependencies
16
+ - @backstage/backend-plugin-api@0.0.0-nightly-20230105022800
17
+ - @backstage/backend-common@0.0.0-nightly-20230105022800
18
+ - @backstage/catalog-model@0.0.0-nightly-20230105022800
19
+ - @backstage/catalog-client@0.0.0-nightly-20230105022800
20
+ - @backstage/plugin-catalog-backend@0.0.0-nightly-20230105022800
21
+ - @backstage/config@0.0.0-nightly-20230105022800
22
+ - @backstage/plugin-catalog-node@0.0.0-nightly-20230105022800
23
+ - @backstage/plugin-events-node@0.0.0-nightly-20230105022800
24
+ - @backstage/backend-tasks@0.0.0-nightly-20230105022800
25
+ - @backstage/errors@1.1.4
26
+ - @backstage/integration@0.0.0-nightly-20230105022800
27
+ - @backstage/types@1.0.2
28
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20230105022800
29
+
30
+ ## 0.2.3-next.1
31
+
32
+ ### Patch Changes
33
+
34
+ - 427d8f4411: Added support for event based updates in the `GithubOrgEntityProvider`!
35
+ Based on webhook events from GitHub the affected `User` or `Group` entity will be refreshed.
36
+ This includes adding new entities, refreshing existing ones, and removing obsolete ones.
37
+
38
+ Please find more information at
39
+ https://backstage.io/docs/integrations/github/org#installation-with-events-support
40
+
41
+ - Updated dependencies
42
+ - @backstage/backend-plugin-api@0.2.1-next.0
43
+ - @backstage/backend-common@0.18.0-next.0
44
+ - @backstage/config@1.0.6-next.0
45
+ - @backstage/plugin-catalog-backend@1.7.0-next.1
46
+ - @backstage/plugin-catalog-node@1.3.1-next.1
47
+ - @backstage/plugin-events-node@0.2.1-next.0
48
+ - @backstage/backend-tasks@0.4.1-next.0
49
+ - @backstage/catalog-client@1.3.0-next.1
50
+ - @backstage/catalog-model@1.1.5-next.1
15
51
  - @backstage/errors@1.1.4
16
- - @backstage/integration@0.0.0-nightly-20230103022231
52
+ - @backstage/integration@1.4.2-next.0
17
53
  - @backstage/types@1.0.2
18
- - @backstage/plugin-catalog-common@0.0.0-nightly-20230103022231
19
- - @backstage/plugin-catalog-node@0.0.0-nightly-20230103022231
20
- - @backstage/plugin-events-node@0.0.0-nightly-20230103022231
54
+ - @backstage/plugin-catalog-common@1.0.10-next.1
21
55
 
22
56
  ## 0.2.3-next.0
23
57
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-github",
3
- "version": "0.0.0-nightly-20230103022231",
3
+ "version": "0.0.0-nightly-20230105022800",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
@@ -232,7 +232,7 @@ export declare class GitHubOrgEntityProvider extends GithubOrgEntityProvider {
232
232
  *
233
233
  * @public
234
234
  */
235
- export declare class GithubOrgEntityProvider implements EntityProvider {
235
+ export declare class GithubOrgEntityProvider implements EntityProvider, EventSubscriber {
236
236
  private options;
237
237
  private readonly credentialsProvider;
238
238
  private connection?;
@@ -258,6 +258,14 @@ export declare class GithubOrgEntityProvider implements EntityProvider {
258
258
  read(options?: {
259
259
  logger?: Logger;
260
260
  }): Promise<void>;
261
+ /** {@inheritdoc @backstage/plugin-events-node#EventSubscriber.onEvent} */
262
+ onEvent(params: EventParams): Promise<void>;
263
+ /** {@inheritdoc @backstage/plugin-events-node#EventSubscriber.supportsEventTopics} */
264
+ supportsEventTopics(): string[];
265
+ private onTeamEditedInOrganization;
266
+ private onMembershipChangedInOrganization;
267
+ private onTeamChangeInOrganization;
268
+ private onMemberChangeInOrganization;
261
269
  private schedule;
262
270
  }
263
271
 
@@ -227,7 +227,7 @@ export declare class GitHubOrgEntityProvider extends GithubOrgEntityProvider {
227
227
  *
228
228
  * @public
229
229
  */
230
- export declare class GithubOrgEntityProvider implements EntityProvider {
230
+ export declare class GithubOrgEntityProvider implements EntityProvider, EventSubscriber {
231
231
  private options;
232
232
  private readonly credentialsProvider;
233
233
  private connection?;
@@ -253,6 +253,14 @@ export declare class GithubOrgEntityProvider implements EntityProvider {
253
253
  read(options?: {
254
254
  logger?: Logger;
255
255
  }): Promise<void>;
256
+ /** {@inheritdoc @backstage/plugin-events-node#EventSubscriber.onEvent} */
257
+ onEvent(params: EventParams): Promise<void>;
258
+ /** {@inheritdoc @backstage/plugin-events-node#EventSubscriber.supportsEventTopics} */
259
+ supportsEventTopics(): string[];
260
+ private onTeamEditedInOrganization;
261
+ private onMembershipChangedInOrganization;
262
+ private onTeamChangeInOrganization;
263
+ private onMemberChangeInOrganization;
256
264
  private schedule;
257
265
  }
258
266