docs(ISSUE-WP-0006): Forgejo-only language and projection boundary
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 34s

Prefer Forgejo as the self-hosted forge product. Keep Gitea only as the
Gitea-compatible API identifier (module backends/gitea, type string
gitea). FORGEJO_TOKEN is preferred; GITEA_* remains a deprecated alias.

INTENT/SCOPE quote ACT-ADR-005: issue-core is not the fleet ops claim
queue. Connector docs describe repo work record → hub index → optional
Forgejo projection, not activity-core → issue-core → harness.

Assistant: grok
Assistant-Session: 01a09dc6-3f0d-7c93-8b11-8e83c0623d49
This commit is contained in:
tegwick 2026-09-14 04:52:58 +02:00
parent f9d276dadf
commit ee9b85215d
34 changed files with 410 additions and 263 deletions

View file

@ -9,10 +9,10 @@ This agent monitors issue health and sends alerts:
- Reports on project velocity and bottlenecks
Usage:
export GITEA_URL=https://gitea.example.com
export GITEA_TOKEN=your-token
export GITEA_OWNER=your-org
export GITEA_REPO=your-repo
export FORGEJO_URL=https://forgejo.example.com
export FORGEJO_TOKEN=your-token
export FORGEJO_OWNER=your-org
export FORGEJO_REPO=your-repo
python monitoring_agent.py [--stale-days=7] [--check-interval=3600]
"""
@ -42,11 +42,11 @@ class MonitoringAgent:
self.backend = None
def connect(self):
"""Connect to backend."""
base_url = os.environ['GITEA_URL']
token = os.environ['GITEA_TOKEN']
owner = os.environ['GITEA_OWNER']
repo = os.environ['GITEA_REPO']
"""Connect to Forgejo backend."""
base_url = os.environ.get('FORGEJO_URL') or os.environ['GITEA_URL']
token = os.environ.get('FORGEJO_TOKEN') or os.environ.get('FORGEJO_API_TOKEN') or os.environ['GITEA_TOKEN']
owner = os.environ.get('FORGEJO_OWNER') or os.environ['GITEA_OWNER']
repo = os.environ.get('FORGEJO_REPO') or os.environ['GITEA_REPO']
self.backend = GiteaBackend()
self.backend.connect({