INNER CODE UNIT · JavaScript

automationMatch

rancher/terraform-provider-rancher2 · agent-scripts/after-invoke.js:211

  const automationMatch = /automation\s+audit|automat(e|ed|ion)/i.test(report);
  if (!automationMatch) {
    errors.push('Review report must explicitly confirm conducting an automation audit of checked items.');
  }

  // 5. Approval Status Check
  const approvalMatch = /approved|approval|perfect|pass/i.test(report);
  if (!approvalMatch) {
    errors.push('Review report must contain an explicit approval status declaration.');
  }

  return {
    valid: errors.length === 0,
    errors,
  };
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…