fix: use fixed repo instead of integration.repositories
This commit is contained in:
parent
4c294965f2
commit
88a3a58117
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue