feat: add IVE review/ask/knowledge-graph templates and bot identity fixes

This commit is contained in:
2026-08-31 08:00:40 +03:00
parent c219f08c8f
commit 99203771ed
3 changed files with 139 additions and 0 deletions
@@ -0,0 +1,46 @@
name: Knowledge Graph (Template)
on:
workflow_call:
jobs:
update-graph:
runs-on: ive
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install graphify
run: pip install --quiet --user --break-system-packages 'graphifyy[openai]'
- name: Link graphify-out under .gitea/
run: |
mkdir -p .gitea/graphify-out
ln -sfn .gitea/graphify-out graphify-out
- name: Update knowledge graph (incremental, AST-only, no LLM)
run: |
export PATH="$HOME/.local/bin:$PATH"
graphify update .
- name: Name communities via local LLM (incremental, missing labels only)
run: |
export PATH="$HOME/.local/bin:$PATH"
export OPENAI_BASE_URL="http://10.2.2.54:5625/v1"
export OPENAI_MODEL="ive-brain"
export OPENAI_API_KEY=${{ secrets.LLM_API_KEY }}
graphify label . --missing-only --backend openai --model ive-brain --max-concurrency 1
- name: Drop graphify's dated backup snapshot
run: rm -rf .gitea/graphify-out/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]
- name: Commit graph if it changed
run: |
git config user.name "ive"
git config user.email "system-ive-code-review@technarts.com"
git add .gitea/graphify-out/
if git diff --cached --quiet; then
exit 0
fi
git commit -m "chore: update graphify knowledge graph [skip-graphify]"
git push origin HEAD:main