fix: use fixed repo instead of integration.repositories

This commit is contained in:
Ricel Leite 2026-02-19 00:27:00 -03:00
parent 4c294965f2
commit 88a3a58117
1 changed files with 2 additions and 7 deletions

View File

@ -34,13 +34,8 @@ async def run_analysis(issue_id: int, db_url: str):
await db.commit()
try:
# Get integration repo if available
repo = None
if issue.integration_id:
int_result = await db.execute(select(Integration).where(Integration.id == issue.integration_id))
integration = int_result.scalar_one_or_none()
if integration and integration.repositories:
repo = integration.repositories[0].get("gitea_repo")
# Fixed repo for now (can be configured later via integration config)
repo = "startdata/cobol-sample-app"
# Run analysis
analysis = await AnalysisService.analyze({