public GetBuilds ( NGitLab.Models.MergeRequest mergeRequest, NGitLab.Sha1 sha ) : IEnumerable |
||
mergeRequest | NGitLab.Models.MergeRequest | |
sha | NGitLab.Sha1 | |
Результат | IEnumerable |
public MergeRequestViewModel(BranchViewModel branch, MergeRequest mergeRequest) { Branch = branch; MergeRequest = mergeRequest; Changes = branch.GetMergeRequestChanges(mergeRequest).Select(x => new MergeRequestFileDataViewModel(x)).ToList(); Commits = branch.GetCommits(mergeRequest) .Select(commit => new CommitViewModel(commit, sha => branch.GetBuilds(mergeRequest, sha), x => branch.DownloadArtifacts(mergeRequest, x), x => branch.DownloadTrace(mergeRequest, x))) .ToList(); Title = MergeRequest.Title; SourceBranch = MergeRequest.SourceBranch; TargetBranch = MergeRequest.TargetBranch; Author = MergeRequest.Author.Username; Assignee = MergeRequest.Assignee?.Username; AssigneeId = MergeRequest?.Assignee?.Id; }
public MergeRequestViewModel(BranchViewModel branch, MergeRequest mergeRequest) { Branch = branch; MergeRequest = mergeRequest; Changes = branch.GetMergeRequestChanges(mergeRequest).Select(x => new MergeRequestFileDataViewModel(x)).ToList(); Commits = branch.GetCommits(mergeRequest) .Select(commit => new CommitViewModel(commit, sha => branch.GetBuilds(mergeRequest, sha), x => branch.DownloadArtifacts(mergeRequest, x), x => branch.DownloadTrace(mergeRequest, x))) .ToList(); Title = MergeRequest.Title; SourceBranch = MergeRequest.SourceBranch; TargetBranch = MergeRequest.TargetBranch; Author = MergeRequest.Author.Username; Assignee = MergeRequest.Assignee?.Username; AssigneeId = MergeRequest?.Assignee?.Id; }