Esempio n. 1
0
        public void RefreshMergeRequest()
        {
            var mergeRequest = gitLabWrapper.GetMergeRequests(Repository.Upstream, x => x.SourceProjectId == Repository.Origin.Id && x.SourceBranch == Name).FirstOrDefault();

            if (mergeRequest != null)
            {
                MergeRequest = new MergeRequestViewModel(this, mergeRequest);
            }
            else
            {
                MergeRequest = null;
            }
        }
Esempio n. 2
0
 public void GetMergeRequests()
 {
     GitLabWrapper wrapper  = new GitLabWrapper(TestCredentials.GitServer, TestCredentials.GitLabToken);
     var           project  = wrapper.FindProject("tester/testxpfall");
     var           requests = wrapper.GetMergeRequests(project, x => x.TargetBranch == "test2");
 }