@backstage/plugin-catalog-backend-module-github 0.13.0-next.2 → 0.13.1-next.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/package.json +14 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,82 @@
1
1
  # @backstage/plugin-catalog-backend-module-github
2
2
 
3
+ ## 0.13.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - edf465f: Removed the `type-fest` dev dependency, replacing its `PartialDeep` import with a local helper type in tests.
8
+ - Updated dependencies
9
+ - @backstage/backend-plugin-api@1.8.1-next.0
10
+ - @backstage/plugin-catalog-node@2.1.1-next.0
11
+ - @backstage/plugin-events-node@0.4.21-next.0
12
+ - @backstage/catalog-model@1.7.7
13
+ - @backstage/config@1.3.6
14
+ - @backstage/errors@1.2.7
15
+ - @backstage/integration@2.0.0
16
+ - @backstage/types@1.2.2
17
+ - @backstage/plugin-catalog-common@1.1.8
18
+
19
+ ## 0.13.0
20
+
21
+ ### Minor Changes
22
+
23
+ - b11c2cd: The default user transformer now prefers organization verified domain emails over the user's public GitHub email when populating the user entity profile. It also strips plus-addressed routing tags that GitHub adds to these emails.
24
+
25
+ If you want to retain the old behavior, you can do so with a custom user transformer using the `githubOrgEntityProviderTransformsExtensionPoint`:
26
+
27
+ ```ts
28
+ import { createBackendModule } from '@backstage/backend-plugin-api';
29
+ import { githubOrgEntityProviderTransformsExtensionPoint } from '@backstage/plugin-catalog-backend-module-github-org';
30
+ import { defaultUserTransformer } from '@backstage/plugin-catalog-backend-module-github';
31
+
32
+ export default createBackendModule({
33
+ pluginId: 'catalog',
34
+ moduleId: 'github-org-custom-transforms',
35
+ register(env) {
36
+ env.registerInit({
37
+ deps: {
38
+ transforms: githubOrgEntityProviderTransformsExtensionPoint,
39
+ },
40
+ async init({ transforms }) {
41
+ transforms.setUserTransformer(async (item, ctx) => {
42
+ const entity = await defaultUserTransformer(item, ctx);
43
+ if (entity && item.email) {
44
+ entity.spec.profile!.email = item.email;
45
+ }
46
+ return entity;
47
+ });
48
+ },
49
+ });
50
+ },
51
+ });
52
+ ```
53
+
54
+ ### Patch Changes
55
+
56
+ - 6738cf0: build(deps): bump `minimatch` from 9.0.5 to 10.2.1
57
+ - 106d1b2: Added a `defaultUserTransformer.useVerifiedEmails` config option for the `githubOrg` provider. When set to `true`, the default user transformer prefers organization verified domain emails over the user's public GitHub email. Defaults to `false`, which uses only the public GitHub email.
58
+
59
+ This option has no effect when a custom user transformer is set via the `githubOrgEntityProviderTransformsExtensionPoint`.
60
+
61
+ ```yaml
62
+ catalog:
63
+ providers:
64
+ githubOrg:
65
+ production:
66
+ githubUrl: https://github.com
67
+ orgs:
68
+ - my-org
69
+ defaultUserTransformer:
70
+ useVerifiedEmails: true
71
+ ```
72
+
73
+ - Updated dependencies
74
+ - @backstage/backend-plugin-api@1.8.0
75
+ - @backstage/integration@2.0.0
76
+ - @backstage/plugin-catalog-node@2.1.0
77
+ - @backstage/catalog-model@1.7.7
78
+ - @backstage/plugin-events-node@0.4.20
79
+
3
80
  ## 0.13.0-next.2
4
81
 
5
82
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-github",
3
- "version": "0.13.0-next.2",
3
+ "version": "0.13.1-next.0",
4
4
  "description": "A Backstage catalog backend module that helps integrate towards GitHub",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -65,14 +65,14 @@
65
65
  "test": "backstage-cli package test"
66
66
  },
67
67
  "dependencies": {
68
- "@backstage/backend-plugin-api": "1.8.0-next.1",
69
- "@backstage/catalog-model": "1.7.6",
68
+ "@backstage/backend-plugin-api": "1.8.1-next.0",
69
+ "@backstage/catalog-model": "1.7.7",
70
70
  "@backstage/config": "1.3.6",
71
71
  "@backstage/errors": "1.2.7",
72
- "@backstage/integration": "2.0.0-next.2",
72
+ "@backstage/integration": "2.0.0",
73
73
  "@backstage/plugin-catalog-common": "1.1.8",
74
- "@backstage/plugin-catalog-node": "2.1.0-next.2",
75
- "@backstage/plugin-events-node": "0.4.20-next.1",
74
+ "@backstage/plugin-catalog-node": "2.1.1-next.0",
75
+ "@backstage/plugin-events-node": "0.4.21-next.0",
76
76
  "@backstage/types": "1.2.2",
77
77
  "@octokit/auth-callback": "^5.0.0",
78
78
  "@octokit/core": "^5.2.0",
@@ -87,16 +87,15 @@
87
87
  "uuid": "^11.0.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@backstage/backend-defaults": "0.16.0-next.2",
91
- "@backstage/backend-test-utils": "1.11.1-next.2",
92
- "@backstage/cli": "0.36.0-next.2",
93
- "@backstage/plugin-catalog-backend": "3.5.0-next.2",
94
- "@backstage/plugin-events-backend": "0.6.0-next.2",
95
- "@backstage/plugin-events-backend-module-github": "0.4.10-next.2",
96
- "@backstage/plugin-events-backend-module-google-pubsub": "0.2.1-next.1",
90
+ "@backstage/backend-defaults": "0.16.1-next.0",
91
+ "@backstage/backend-test-utils": "1.11.2-next.0",
92
+ "@backstage/cli": "0.36.1-next.0",
93
+ "@backstage/plugin-catalog-backend": "3.5.1-next.0",
94
+ "@backstage/plugin-events-backend": "0.6.1-next.0",
95
+ "@backstage/plugin-events-backend-module-github": "0.4.11-next.0",
96
+ "@backstage/plugin-events-backend-module-google-pubsub": "0.2.2-next.0",
97
97
  "@types/lodash": "^4.14.151",
98
- "msw": "^2.0.0",
99
- "type-fest": "^4.41.0"
98
+ "msw": "^2.0.0"
100
99
  },
101
100
  "configSchema": "config.d.ts"
102
101
  }