@using System.Linq @using System.Text.Json @using marlin.web.Controllers @model marlin.web.Controllers.JobsController.JobSpawnDetails @{ var sourcesJson = JsonSerializer.Serialize(Model.Sources.Select(s => new { id = s.Id, label = s.UpstreamUrl, mainBranch = s.MainBranch, branches = s.Branches.Select(b => new { id = b.Id, name = b.Name, commit = b.Commit.Hash, recipes = b.Commit.WorkflowSnapshot?.Workflow.Recipes.Values.Select(r => new { id = r.Id, name = r.Name }) ?? Enumerable.Empty() }) })); }
VCS:
Ref:
Recipe: