@backstage/plugin-catalog-backend-module-github 0.2.3-next.0 → 0.2.3-next.2

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,53 @@
1
1
  # @backstage/plugin-catalog-backend-module-github
2
2
 
3
+ ## 0.2.3-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - f8d91a8810: fixed `catalogPath` option to properly glob match on received GitHub events.
8
+ - 9f2b786fc9: Provide context for logged errors.
9
+ - 8e06f3cf00: Switched imports of `loggerToWinstonLogger` to `@backstage/backend-common`.
10
+ - Updated dependencies
11
+ - @backstage/backend-plugin-api@0.3.0-next.1
12
+ - @backstage/backend-common@0.18.0-next.1
13
+ - @backstage/backend-tasks@0.4.1-next.1
14
+ - @backstage/catalog-client@1.3.0-next.2
15
+ - @backstage/plugin-catalog-backend@1.7.0-next.2
16
+ - @backstage/plugin-catalog-node@1.3.1-next.2
17
+ - @backstage/plugin-events-node@0.2.1-next.1
18
+ - @backstage/catalog-model@1.1.5-next.1
19
+ - @backstage/config@1.0.6-next.0
20
+ - @backstage/errors@1.1.4
21
+ - @backstage/integration@1.4.2-next.0
22
+ - @backstage/types@1.0.2
23
+ - @backstage/plugin-catalog-common@1.0.10-next.1
24
+
25
+ ## 0.2.3-next.1
26
+
27
+ ### Patch Changes
28
+
29
+ - 427d8f4411: Added support for event based updates in the `GithubOrgEntityProvider`!
30
+ Based on webhook events from GitHub the affected `User` or `Group` entity will be refreshed.
31
+ This includes adding new entities, refreshing existing ones, and removing obsolete ones.
32
+
33
+ Please find more information at
34
+ https://backstage.io/docs/integrations/github/org#installation-with-events-support
35
+
36
+ - Updated dependencies
37
+ - @backstage/backend-plugin-api@0.2.1-next.0
38
+ - @backstage/backend-common@0.18.0-next.0
39
+ - @backstage/config@1.0.6-next.0
40
+ - @backstage/plugin-catalog-backend@1.7.0-next.1
41
+ - @backstage/plugin-catalog-node@1.3.1-next.1
42
+ - @backstage/plugin-events-node@0.2.1-next.0
43
+ - @backstage/backend-tasks@0.4.1-next.0
44
+ - @backstage/catalog-client@1.3.0-next.1
45
+ - @backstage/catalog-model@1.1.5-next.1
46
+ - @backstage/errors@1.1.4
47
+ - @backstage/integration@1.4.2-next.0
48
+ - @backstage/types@1.0.2
49
+ - @backstage/plugin-catalog-common@1.0.10-next.1
50
+
3
51
  ## 0.2.3-next.0
4
52
 
5
53
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-github",
3
- "version": "0.2.3-next.0",
3
+ "version": "0.2.3-next.2",
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