Files
html/api/ambre-final-commit.php
2026-04-22 03:15:02 +02:00

22 lines
1.2 KiB
PHP

<?php
header("Content-Type: text/plain");
// Commit vault doctrine 109 (vault has its own git if any)
chdir("/opt/obsidian-vault");
$vault_git = @shell_exec("git status 2>&1 | head -5");
echo "=== Vault git status ===\n$vault_git\n";
if (strpos($vault_git, "fatal") === false) {
echo @shell_exec("git -c user.email='ambre@weval.com' -c user.name='Ambre WEVIA' add doctrines/109-wave229-6sigma-sse-pdf-premium.md && git -c user.email='ambre@weval.com' -c user.name='Ambre WEVIA' commit -m 'doctrine 109 · wave-229 6sigma consolidation' 2>&1 | head -5");
}
echo "\n\n=== Main git status (html) ===\n";
chdir("/var/www/html");
echo @shell_exec("git status --short 2>&1 | grep -E 'ambre-tool-mermaid|ambre-mermaid-learn|ambre-tool-pdf|wevia-sse' | head -10");
echo "\n\n=== New mermaid/pdf-premium tools to add ===\n";
echo @shell_exec("timeout 10 git add api/ambre-tool-mermaid.php api/ambre-mermaid-learn.php 2>&1");
echo @shell_exec("timeout 10 git -c user.email='ambre@weval.com' -c user.name='Ambre WEVIA' commit -m 'wave-229 · mermaid learning KB RAG wrapper + PDF chart types' 2>&1 | head -10");
echo "\n\n=== Push ===\n";
echo @shell_exec("timeout 60 git push origin main 2>&1 | tail -5");