Repository navigation
fix(scripts): tighten owner approval queue predicate and tests - #70
Conversation
Co-authored-by: Antigravity <noreply@google.com>
AI Code Review (opencode /
|
Co-authored-by: Antigravity <noreply@google.com>
AI Code Review (opencode /
|
AI assistance
glm-5.4review findings); verified locally.What changed
isPendingOwnerApprovalinscripts/owner-approve-queue.mjsto hydraterisk-gatecommit status descriptions viagh api repos/<repo>/commits/<sha>/statusand require a clearing-label failure reason (needs owner-approved|clearing_label_required|diff volume exceeded) plus passingpr-template, refusing unresolved threads or missing descriptions fail-closed.runGhadapter, strict flag validation (--org,--repo), case-insensitive org filtering,--limit 100,--reposkip forrepos.json, and surfaced auto-merge warning errors.scripts/test-owner-approve-queue.cjswith synthetic placeholders and added tests for status-description hydration and the interactive--approvepath.How verified
node --test scripts/test-owner-approve-queue.cjs: 4 passed, 0 failed./usr/local/bin/gitleaks git --config pr-governance/.gitleaks.toml --log-opts="origin/main..HEAD" --redact:no leaks found.Why
glm-5.4review findings reported on feat(governance): add tiered R2 clearing policy and owner approval queue #69 right as feat(governance): add tiered R2 clearing policy and owner approval queue #69 merged.Risk
scripts/owner-approve-queue.mjs,scripts/test-owner-approve-queue.cjs): tooling CLI and unit tests only; nopr-governance/evaluator changes.