fix(release-gate): map index.html to the UI impact domain
Memind CI / Test, build, and release guards (push) Successful in 7m50s

Unblock Core+Impact selection for H5 shell title changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-14 09:46:34 +08:00
parent 443544d1f7
commit fe2d5d7aa1
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ const IMPACT_RULES = Object.freeze([
{ groups: ['AUTH'], pattern: /(?:auth|access-policy|account|user-permission)/i },
{ groups: ['CFG'], pattern: /(?:config|provider|model-catalog|orchestrator|analytics|disclosure)/i },
{ groups: ['CFG'], pattern: /(?:^|\/)\.env(?:\.example)?$/i },
{ groups: ['UI'], pattern: /^(?:src\/|public\/)|\.(?:css|scss|tsx|vue)$/i },
{ groups: ['UI'], pattern: /^(?:src\/|public\/|index\.html$)|\.(?:css|scss|tsx|vue)$/i },
]);
const GROUP_DEPENDENCIES = Object.freeze({
+11
View File
@@ -17,6 +17,17 @@ test('docs-only changes use the compact core gate', async () => {
assert.equal(selection.unmapped_paths.length, 0);
});
test('H5 shell index.html maps to the UI domain', async () => {
const catalog = await loadScenarioCatalog();
const selection = selectImpactScenarios({
catalog,
changedPaths: ['index.html'],
});
assert.equal(selection.strategy, 'impact');
assert.deepEqual(selection.impact_groups, ['UI']);
assert.equal(selection.unmapped_paths.length, 0);
});
test('domain changes select the domain and dependency closure', async () => {
const catalog = await loadScenarioCatalog();
const selection = selectImpactScenarios({