LAND_AUDIT.sh
#!/usr/bin/env bash
# Run from a terminal on the Mac where `gh` is logged in: bash docs/audits/LAND_AUDIT.sh
# 1) pushes docs/audits/ (backlog, prompts, ticket bodies) on branch audit/docs-2026-09-08 and opens a PR
# 2) creates the 44 GitHub issues (idempotent) and commits issue_map.json to the same branch
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
git fetch origin
git checkout -B audit/docs-2026-09-08 origin/main
git add docs/audits docs/reports/MIZOKI_ACQUISITION_ECONOMICS_REVIEW_v1.1_2026-09-06.md
git commit -m "docs(audit): 2026-09-06 audit backlog, execution prompts, issue bodies" || true
git push -u origin audit/docs-2026-09-08
gh pr create --title "Audit docs: backlog, execution prompts, issue bodies (2026-09-08)" \
--body "Adds docs/audits/ from the 6 Sep 2026 repository audit. Docs only. Do not auto-merge." \
--base main --head audit/docs-2026-09-08 || true
bash docs/audits/wo/create_issues.sh
git add docs/audits/wo/issue_map.json
git commit -m "docs(audit): WO → GitHub issue map" && git push
echo "DONE — PR open, issues created, issue_map.json pushed."