internal/service/deploy/deploy.go - cloneRepository and cleanupCancelledDeploy
Fix
Rename parameter to appName and update doc comment, or make cloneRepository use GetBuildDir instead of constructing the path inline.
## Bug
`deploy.Service.GetBuildDir(appID string)` is documented as taking an app ID, but all call sites pass `app.Name`:
- `cloneRepository()` uses `filepath.Join(svc.config.DataDir, "builds", app.Name)` inline
- `cleanupCancelledDeploy()` calls `svc.GetBuildDir(app.Name)`
The builds directory structure uses app names, not ULIDs. If anyone calls `GetBuildDir` with an actual app ID, the path will not match.
## Files
- `internal/service/deploy/deploy.go:88` - GetBuildDir definition
- `internal/service/deploy/deploy.go` - cloneRepository and cleanupCancelledDeploy
## Fix
Rename parameter to `appName` and update doc comment, or make `cloneRepository` use `GetBuildDir` instead of constructing the path inline.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug
deploy.Service.GetBuildDir(appID string)is documented as taking an app ID, but all call sites passapp.Name:cloneRepository()usesfilepath.Join(svc.config.DataDir, "builds", app.Name)inlinecleanupCancelledDeploy()callssvc.GetBuildDir(app.Name)The builds directory structure uses app names, not ULIDs. If anyone calls
GetBuildDirwith an actual app ID, the path will not match.Files
internal/service/deploy/deploy.go:88- GetBuildDir definitioninternal/service/deploy/deploy.go- cloneRepository and cleanupCancelledDeployFix
Rename parameter to
appNameand update doc comment, or makecloneRepositoryuseGetBuildDirinstead of constructing the path inline.