|
|
9d69629893
|
ganymede: extract lib/forgejo.py — single Forgejo API client
CI / lint-and-test (pull_request) Has been cancelled
- What: Unified forgejo_api(), get_pr_diff(), get_agent_token(), repo_path()
into lib/forgejo.py. Removed 3 duplicate _forgejo_api functions (evaluate.py,
merge.py, validate.py), 2 duplicate _get_pr_diff functions (evaluate.py,
validate.py), and 1 _agent_token function (evaluate.py).
- Why: Phase 3 structural refactor. Single source of truth for all Forgejo HTTP
calls. Eliminates ~90 lines of duplicated code across 3 modules.
- Connections: All hardcoded repo paths now use repo_path() helper. Consumer
modules no longer reference config.FORGEJO_URL/OWNER/REPO/TOKEN_FILE directly.
Pentagon-Agent: Ganymede <F99EBFA6-547B-4096-BEEA-1D59C3E4028A>
|
2026-03-13 15:29:34 +00:00 |
|