Prompt file imported from intelligenceforgood/copilot (
.github/prompts/pre-merge-review.prompt.md). Copyright stays with the author.
Pre-Merge Review
Execute the complete pre-merge review for all repos with changes.
Steps
-
Identify changed repos. Run
git status -sbin each workspace root to find which repos have uncommitted or staged changes. -
Read the full checklist. Load and follow the shared pre-merge checklist at
copilot/.github/shared/pre-merge-checklist.instructions.md. -
Code audit. Review all changed files against coding standards:
- Type hints on every function (parameters + return)
- Google-style docstrings on public/private methods
- No unused imports, dead code, bare excepts, hard-coded secrets
- Correct use of stores/factories/settings
- No circular imports
-
Run quality gates for each changed repo:
Python repos (core/, ssi/):
cd <repo-root> conda run -n <env> pre-commit run --all-files # Pass 1 — auto-fixes git add -u # Stage fixes conda run -n <env> pre-commit run --all-files # Pass 2 — must be cleanConda envs:
i4gfor core,i4g-ssifor ssi.UI repo:
cd ui/ && make check && make buildInfra repo:
cd infra/ && terraform fmt -check -recursive -
Run tests.
conda run -n i4g pytest tests/unitin core (and ssi if changed). -
Check docs/config. If behavior or env vars changed, verify:
docs/config/settings_manifest.yamlis updatedplanning/change_log.mdreflects the changes
-
Summary. Report: issues found, fixes applied, test results, hook output, remaining items.
-
Record lessons. If the review revealed new patterns, add to
/memories/repo/lessons-learned.md.