chore: add dev deploy apply preflight

This commit is contained in:
HWLAB Code Queue
2026-05-21 16:40:59 +00:00
parent f1367da333
commit d312cd0f3f
10 changed files with 878 additions and 5 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const reportsDir = path.join(repoRoot, "reports/dev-gate");
const requiredIssue = "pikasTech/HWLAB#31";
const allowedIssues = new Set(["pikasTech/HWLAB#31", "pikasTech/HWLAB#33"]);
const requiredValidationCommands = [
"node --check scripts/validate-dev-gate-report.mjs",
"node scripts/validate-dev-gate-report.mjs"
@@ -138,7 +138,7 @@ async function validateReport(relativePath) {
assertString(report.$schema, `${label}.$schema`);
assertString(report.$id, `${label}.$id`);
assert.equal(report.reportVersion, "v1", `${label}.reportVersion`);
assert.equal(report.issue, requiredIssue, `${label}.issue`);
assert.ok(allowedIssues.has(report.issue), `${label}.issue must be a known DEV gate issue`);
assert.match(report.taskId, /^[a-z][a-z0-9-]*$/, `${label}.taskId`);
assert.match(report.commitId, /^[a-f0-9]{7,40}$/, `${label}.commitId`);
assert.match(report.acceptanceLevel, /^[a-z][a-z0-9_-]*$/, `${label}.acceptanceLevel`);