Compare commits
1 Commits
conflicts
...
local_repo
Author | SHA256 | Date | |
---|---|---|---|
fa61af0db6 |
@@ -300,10 +300,20 @@ func GenerateObsPrjMeta(git common.Git, gitea common.Gitea, pr *models.PullReque
|
|||||||
|
|
||||||
// set paths to parent project
|
// set paths to parent project
|
||||||
for idx, r := range meta.Repositories {
|
for idx, r := range meta.Repositories {
|
||||||
meta.Repositories[idx].Paths = []common.RepositoryPathMeta{{
|
localRepository := false
|
||||||
Project: buildPrj,
|
for pidx, path := range r.Paths {
|
||||||
Repository: r.Name,
|
// Check for path building against a repo in template project itself
|
||||||
}}
|
if path.Project == buildPrj {
|
||||||
|
meta.Repositories[idx].Paths[pidx].Project = meta.Name
|
||||||
|
localRepository = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if localRepository != true {
|
||||||
|
meta.Repositories[idx].Paths = []common.RepositoryPathMeta{{
|
||||||
|
Project: buildPrj,
|
||||||
|
Repository: r.Name,
|
||||||
|
}}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return meta, nil
|
return meta, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user