@backstage/plugin-catalog-backend-module-github 0.2.3-next.0 → 0.2.3-next.1
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 +26 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +9 -1
- package/dist/index.beta.d.ts +9 -1
- package/dist/index.cjs.js +512 -136
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-github
|
|
2
2
|
|
|
3
|
+
## 0.2.3-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
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
|
+
- Updated dependencies
|
|
15
|
+
- @backstage/backend-plugin-api@0.2.1-next.0
|
|
16
|
+
- @backstage/backend-common@0.18.0-next.0
|
|
17
|
+
- @backstage/config@1.0.6-next.0
|
|
18
|
+
- @backstage/plugin-catalog-backend@1.7.0-next.1
|
|
19
|
+
- @backstage/plugin-catalog-node@1.3.1-next.1
|
|
20
|
+
- @backstage/plugin-events-node@0.2.1-next.0
|
|
21
|
+
- @backstage/backend-tasks@0.4.1-next.0
|
|
22
|
+
- @backstage/catalog-client@1.3.0-next.1
|
|
23
|
+
- @backstage/catalog-model@1.1.5-next.1
|
|
24
|
+
- @backstage/errors@1.1.4
|
|
25
|
+
- @backstage/integration@1.4.2-next.0
|
|
26
|
+
- @backstage/types@1.0.2
|
|
27
|
+
- @backstage/plugin-catalog-common@1.0.10-next.1
|
|
28
|
+
|
|
3
29
|
## 0.2.3-next.0
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.alpha.d.ts
CHANGED
|
@@ -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
|
|
package/dist/index.beta.d.ts
CHANGED
|
@@ -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
|
|