فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(release): reject extra gates and malformed evidence URLs
davoodmehraban89 committed
Oct 19, 2026 at 01:41 UTC
d7d75966161e0a198ec68fae28d3a518a1eee446
1 file changed
+4
-1
scripts/verify-phase-a-release.mjs
+4
-1
@@ -20,13 +20,16 @@ export function verifyPhaseARelease({ acceptance, packageVersion, desktopVersion
20
}
21
byId.set(row.id, row);
22
}
23
+ if (byId.size !== required.length || [...byId.keys()].some(id => !required.includes(id))) {
24
+ throw new Error('Unexpected or missing release acceptance entry');
25
+ }
26
const blocked = [];
27
for (const id of required) {
28
const row = byId.get(id);
29
if (row?.accepted !== true ||
30
!Array.isArray(row.evidence) || !row.evidence.length ||
31
row.evidence.some(link => typeof link !== 'string' ||
29
- !/^https:\/\/github\.com\/davoodmehraban89\/Factor-easyPro\/(?:actions\/runs|pull|issues)\/\d+/.test(link))) {
32
+ !/^https:\/\/github\.com\/davoodmehraban89\/Factor-easyPro\/(?:actions\/runs|pull|issues)\/[1-9]\d*$/.test(link))) {
33
blocked.push(id);
34
}
35
}