@backstage/integration 1.4.2 → 1.4.3

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,23 @@
1
1
  # @backstage/integration
2
2
 
3
+ ## 1.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
8
+ - Updated dependencies
9
+ - @backstage/errors@1.1.5
10
+ - @backstage/config@1.0.7
11
+
12
+ ## 1.4.3-next.0
13
+
14
+ ### Patch Changes
15
+
16
+ - 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
17
+ - Updated dependencies
18
+ - @backstage/errors@1.1.5-next.0
19
+ - @backstage/config@1.0.7-next.0
20
+
3
21
  ## 1.4.2
4
22
 
5
23
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1188,7 +1188,9 @@ function readGithubIntegrationConfigs(configs) {
1188
1188
  function getGithubFileFetchUrl(url, config, credentials) {
1189
1189
  try {
1190
1190
  const { owner, name, ref, filepathtype, filepath } = parseGitUrl__default["default"](url);
1191
- if (!owner || !name || !ref || filepathtype !== "blob" && filepathtype !== "raw" && filepathtype !== "tree") {
1191
+ if (!owner || !name || !ref || // GitHub is automatically redirecting tree urls to blob urls so it's
1192
+ // fine to pass a tree url.
1193
+ filepathtype !== "blob" && filepathtype !== "raw" && filepathtype !== "tree") {
1192
1194
  throw new Error("Invalid GitHub URL or file path");
1193
1195
  }
1194
1196
  const pathWithoutSlash = filepath.replace(/^\//, "");