@backstage/integration 1.1.0 → 1.2.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,98 @@
1
1
  # @backstage/integration
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e295ce87de: added the possibility to handle raw Gitlab URLs with nested namespaces
8
+ - 6673babab9: Gerrit UrlReader: Implemented `readTree`
9
+ - 1b4e1e2306: Split `bitbucket` integration into `bitbucketCloud` and `bitbucketServer`
10
+ (backwards compatible).
11
+
12
+ In order to migrate to the new integration configs,
13
+ move your configs from `integrations.bitbucket`
14
+ to `integrations.bitbucketCloud` or `integrations.bitbucketServer`.
15
+
16
+ Migration example:
17
+
18
+ **Before:**
19
+
20
+ ```yaml
21
+ integrations:
22
+ bitbucket:
23
+ - host: bitbucket.org
24
+ username: bitbucket_user
25
+ appPassword: app-password
26
+ - host: bitbucket-server.company.com
27
+ token: my-token
28
+ ```
29
+
30
+ **After:**
31
+
32
+ ```yaml
33
+ integrations:
34
+ bitbucketCloud:
35
+ - username: bitbucket_user
36
+ appPassword: app-password
37
+ bitbucketServer:
38
+ - host: bitbucket-server.company.com
39
+ token: my-token
40
+ ```
41
+
42
+ - 566407bf8a: Gerrit Integration: Added the `getGerritProjectsApiUrl` function
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies
47
+ - @backstage/config@1.0.1
48
+
49
+ ## 1.2.0-next.1
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies
54
+ - @backstage/config@1.0.1-next.0
55
+
56
+ ## 1.2.0-next.0
57
+
58
+ ### Minor Changes
59
+
60
+ - 6673babab9: Gerrit UrlReader: Implemented `readTree`
61
+ - 1b4e1e2306: Split `bitbucket` integration into `bitbucketCloud` and `bitbucketServer`
62
+ (backwards compatible).
63
+
64
+ In order to migrate to the new integration configs,
65
+ move your configs from `integrations.bitbucket`
66
+ to `integrations.bitbucketCloud` or `integrations.bitbucketServer`.
67
+
68
+ Migration example:
69
+
70
+ **Before:**
71
+
72
+ ```yaml
73
+ integrations:
74
+ bitbucket:
75
+ - host: bitbucket.org
76
+ username: bitbucket_user
77
+ appPassword: app-password
78
+ - host: bitbucket-server.company.com
79
+ token: my-token
80
+ ```
81
+
82
+ **After:**
83
+
84
+ ```yaml
85
+ integrations:
86
+ bitbucketCloud:
87
+ - username: bitbucket_user
88
+ appPassword: app-password
89
+ bitbucketServer:
90
+ - host: bitbucket-server.company.com
91
+ token: my-token
92
+ ```
93
+
94
+ - 566407bf8a: Gerrit Integration: Added the `getGerritProjectsApiUrl` function
95
+
3
96
  ## 1.1.0
4
97
 
5
98
  ### Minor Changes
package/config.d.ts CHANGED
@@ -31,7 +31,10 @@ export interface Config {
31
31
  token?: string;
32
32
  }>;
33
33
 
34
- /** Integration configuration for Bitbucket */
34
+ /**
35
+ * Integration configuration for Bitbucket
36
+ * @deprecated replaced by bitbucketCloud and bitbucketServer
37
+ */
35
38
  bitbucket?: Array<{
36
39
  /**
37
40
  * The hostname of the given Bitbucket instance
@@ -60,6 +63,39 @@ export interface Config {
60
63
  appPassword?: string;
61
64
  }>;
62
65
 
66
+ /** Integration configuration for Bitbucket Cloud */
67
+ bitbucketCloud?: Array<{
68
+ /**
69
+ * The username to use for authenticated requests.
70
+ * @visibility secret
71
+ */
72
+ username: string;
73
+ /**
74
+ * Bitbucket Cloud app password used to authenticate requests.
75
+ * @visibility secret
76
+ */
77
+ appPassword: string;
78
+ }>;
79
+
80
+ /** Integration configuration for Bitbucket Server */
81
+ bitbucketServer?: Array<{
82
+ /**
83
+ * The hostname of the given Bitbucket Server instance
84
+ * @visibility frontend
85
+ */
86
+ host: string;
87
+ /**
88
+ * Token used to authenticate requests.
89
+ * @visibility secret
90
+ */
91
+ token?: string;
92
+ /**
93
+ * The base url for the Bitbucket Server API, for example https://<host>/rest/api/1.0
94
+ * @visibility frontend
95
+ */
96
+ apiBaseUrl?: string;
97
+ }>;
98
+
63
99
  /** Integration configuration for Gerrit */
64
100
  gerrit?: Array<{
65
101
  /**
@@ -72,6 +108,11 @@ export interface Config {
72
108
  * @visibility frontend
73
109
  */
74
110
  baseUrl?: string;
111
+ /**
112
+ * The base url for cloning repos.
113
+ * @visibility frontend
114
+ */
115
+ cloneUrl?: string;
75
116
  /**
76
117
  * The username to use for authenticated requests.
77
118
  * @visibility secret