GetMergeRequestChanges() public method

public GetMergeRequestChanges ( NGitLab.Models.MergeRequest mergeRequest ) : IEnumerable
mergeRequest NGitLab.Models.MergeRequest
return IEnumerable
Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }