Skip to content

Commit

Permalink
add namespace return
Browse files Browse the repository at this point in the history
Signed-off-by: allenshen <[email protected]>
  • Loading branch information
AllenShen committed May 31, 2022
1 parent b3ee171 commit 4ded17a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ func PreSetWorkflow(productName string, log *zap.SugaredLogger) ([]*PreSetResp,
}
}
}
for _, repo := range preSet.Repos {
repo.RepoNamespace = repo.GetRepoNamespace()
}
resp = append(resp, preSet)
}
return resp, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ func EnsureBuildResp(mb *commonmodels.Build) {
}

mb.Repos = mb.SafeRepos()
for _, repo := range mb.Repos {
repo.RepoNamespace = repo.GetRepoNamespace()
}

if mb.PreBuild != nil {
if len(mb.PreBuild.Installs) == 0 {
Expand Down

0 comments on commit 4ded17a

Please sign in to comment.