Skip to content

Commit dd9be6b

Browse files
Update server/routers/cicd.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f15ed18 commit dd9be6b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/routers/cicd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ async def list_workflows(project_name: str):
201201
if not project_dir:
202202
raise HTTPException(status_code=404, detail="Project not found")
203203

204+
if not project_dir.exists():
205+
raise HTTPException(status_code=404, detail="Project directory not found")
206+
204207
workflows_dir = project_dir / ".github" / "workflows"
205208
if not workflows_dir.exists():
206209
return WorkflowListResponse(workflows=[], count=0)

0 commit comments

Comments
 (0)