Files
paul 0aeb893c0f feat: Implement initial setup for Financial Crime domain
- Added Makefile for orchestrating domain instantiation and management.
- Created deploy README for guiding the setup process of the Financial Crime domain.
- Introduced domain configuration file for mapping metadata to the deployment template.
- Implemented pre-commit hook for validating metadata before commits.
- Developed instantiation script to manage the lifecycle of the Financial Crime domain.
- Added Salesforce CRM source with associated metadata and transformation files.
- Added SAP Fraud Management source with associated metadata and transformation files.
- Added Temenos Payment source with associated metadata and transformation files.
- Removed obsolete payment event and parties transformation files.
2026-06-14 16:46:06 +12:00

21 lines
684 B
Bash
Executable File

#!/bin/bash
# Pre-commit metadata gate: block commits that break the MD-DDL domain.
# Install with: make install-hooks
set -euo pipefail
REPO_ROOT="$(git rev-parse --show-toplevel)"
METADATA_DIR="$(
python3 - "$REPO_ROOT/deploy/domain.config.yml" <<'PY'
import sys, yaml
print(yaml.safe_load(open(sys.argv[1]))["metadata_dir"])
PY
)"
echo "pre-commit: running MD-DDL pre-flight on '$METADATA_DIR'…"
if ! python3 "$REPO_ROOT/.github/scripts/preflight.py" "$METADATA_DIR"; then
echo "pre-commit: metadata pre-flight FAILED — commit blocked." >&2
echo " Fix the findings above, or bypass with 'git commit --no-verify'." >&2
exit 1
fi
echo "pre-commit: metadata OK."