feat: start on a blank container — spawn with empty:true and no repo (skip clone, default worker image); Spawn UI enables blank spawn without repo selection
This commit is contained in:
+7
-1
@@ -373,7 +373,13 @@ func (s *Server) handleSpawn(w http.ResponseWriter, r *http.Request) {
|
||||
if !decodeBody(w, r, &body) {
|
||||
return
|
||||
}
|
||||
if !validRepoPath(body.Repo) {
|
||||
// Blank-container spawns carry no repo; everything else must look like
|
||||
// group/project.
|
||||
if body.Repo == "" && !body.Empty {
|
||||
writeError(w, http.StatusBadRequest, "repo required (or set empty for a blank container)")
|
||||
return
|
||||
}
|
||||
if body.Repo != "" && !validRepoPath(body.Repo) {
|
||||
writeError(w, http.StatusBadRequest, "repo must look like group/project")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user