chore: add dev deploy apply preflight
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user