let the fun begin!

This commit is contained in:
2025-12-08 18:21:28 +01:00
parent 495e67f14d
commit 61ffd2da74
2 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
name: DarkTeaOps PR Summary
run-name: Summoning DarkTeaOps for PR #${{ github.event.pull_request.number }}
on:
pull_request:
types: [opened, synchronize]
jobs:
summarize:
runs-on: ollama-runner
steps:
- name: 🔮 Checkout Repo
uses: actions/checkout@v4
- name: 🫖 Invoke DarkTeaOps
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_API_URL: ${{ gitea.server_url }}/api/v1
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
OLLAMA_URL: "http://host.docker.internal:11434/api/generate"
OLLAMA_MODEL: "gemma3"
run: |-
echo "🫖 DarkTeaOps awakens…"
node <<'EOF'
require("child_process").spawn("node", [".gitea/workflows/reviewer.js"], {
stdio: "inherit"
}).on("exit", code => {
if (code !== 0) {
console.error("💀 DarkTeaOps encountered turbulence and plunged deeper into the brew!");
process.exit(code);
}
});
EOF