fix: update GITEA_API default to VPS address in triage_score.py and loop_guard.py
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled

Change the localhost fallback to http://143.198.27.163:3000/api/v1 so
both scripts reach Gitea when GITEA_API / TIMMY_GITEA_API env vars are
unset (the normal dev-loop case).

Fixes #1177

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexander Whitestone
2026-03-23 16:50:05 -04:00
parent 61377e3a1e
commit a25cc6420b
2 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ def _get_gitea_api() -> str:
if api_file.exists():
return api_file.read_text().strip()
# Default fallback
return "http://localhost:3000/api/v1"
return "http://143.198.27.163:3000/api/v1"
GITEA_API = _get_gitea_api()

View File

@@ -6,7 +6,7 @@ writes a ranked queue to .loop/queue.json. No LLM calls — pure heuristics.
Run: python3 scripts/triage_score.py
Env: GITEA_TOKEN (or reads ~/.hermes/gitea_token)
GITEA_API (default: http://localhost:3000/api/v1)
GITEA_API (default: http://143.198.27.163:3000/api/v1)
REPO_SLUG (default: rockachopa/Timmy-time-dashboard)
"""
@@ -33,7 +33,7 @@ def _get_gitea_api() -> str:
if api_file.exists():
return api_file.read_text().strip()
# Default fallback
return "http://localhost:3000/api/v1"
return "http://143.198.27.163:3000/api/v1"
GITEA_API = _get_gitea_api()