@adobe/helix-config 5.1.0 → 5.1.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 +14 -0
- package/package.json +1 -1
- package/src/config-view.js +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.1.2](https://github.com/adobe/helix-config/compare/v5.1.1...v5.1.2) (2025-04-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* skip branch test for 'main' branch ([#260](https://github.com/adobe/helix-config/issues/260)) ([2e6a6af](https://github.com/adobe/helix-config/commit/2e6a6af7c5cf0f63f8a7fefc325242e249b6e219))
|
|
7
|
+
|
|
8
|
+
## [5.1.1](https://github.com/adobe/helix-config/compare/v5.1.0...v5.1.1) (2025-04-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* resolve groups correctly ([#258](https://github.com/adobe/helix-config/issues/258)) ([7971230](https://github.com/adobe/helix-config/commit/797123067f6028828657eececfc48fbf1d6ae484))
|
|
14
|
+
|
|
1
15
|
# [5.1.0](https://github.com/adobe/helix-config/compare/v5.0.0...v5.1.0) (2025-04-04)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/config-view.js
CHANGED
|
@@ -299,11 +299,12 @@ async function resolveConfig(ctx, rso, scope) {
|
|
|
299
299
|
site.data = res.json();
|
|
300
300
|
|
|
301
301
|
const { code } = site.data;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
if (rso.ref !== 'main') {
|
|
303
|
+
const res2 = await ctx.loader.dirExists(HELIX_CODE_BUS, `${code.owner}/${code.repo}/${rso.ref}`);
|
|
304
|
+
if (res2.status !== 200) {
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
305
307
|
}
|
|
306
|
-
|
|
307
308
|
site.updateLastModified(res.headers);
|
|
308
309
|
|
|
309
310
|
// always load default profile if available
|
|
@@ -412,14 +413,14 @@ function computeSiteAdminRoles(admin, orgConfig, configGroups = {}) {
|
|
|
412
413
|
users.add(entry);
|
|
413
414
|
const reference = entry.endsWith('.json')
|
|
414
415
|
? entry.substring(7, entry.length - 5)
|
|
415
|
-
: entry;
|
|
416
|
+
: entry.substring(7);
|
|
416
417
|
for (const email of resolveGroup(configGroups, reference)) {
|
|
417
418
|
users.add(email);
|
|
418
419
|
}
|
|
419
420
|
} else if (entry.startsWith('/groups/')) {
|
|
420
421
|
const reference = entry.endsWith('.json')
|
|
421
422
|
? entry.substring(8, entry.length - 5)
|
|
422
|
-
: entry;
|
|
423
|
+
: entry.substring(8);
|
|
423
424
|
for (const email of resolveGroup(orgGroups, reference)) {
|
|
424
425
|
users.add(email);
|
|
425
426
|
}
|