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()
|
await db.commit()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Get integration repo if available
|
# Fixed repo for now (can be configured later via integration config)
|
||||||
repo = None
|
repo = "startdata/cobol-sample-app"
|
||||||
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")
|
|
||||||
|
|
||||||
# Run analysis
|
# Run analysis
|
||||||
analysis = await AnalysisService.analyze({
|
analysis = await AnalysisService.analyze({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue