GetProjects() public method

public GetProjects ( ) : IEnumerable
return IEnumerable
Example #1
0
 static MergeRequest CalcMergeRequest(GitLabWrapper gitLabWrapper, BuildHookClient hook, Project project) {
     foreach (var checkProject in gitLabWrapper.GetProjects()) {
         var mergeRequests = gitLabWrapper.GetMergeRequests(checkProject, x => x.SourceProjectId == project.Id);
         var mergeRequest = mergeRequests.FirstOrDefault(x => x.SourceBranch == hook.Branch);
         if (mergeRequest != null)
             return mergeRequest;
     }
     return null;
 }