Exemplo n.º 1
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            Func <GitHubClient> gitHubClientFactory = () => new GitHubClient(Product)
            {
                Credentials = new Credentials(Secrets.GithubToken)
            };

            var baseClient = new GitClient(gitHubClientFactory);

            // For each tracked repository we should check the submodule status for each tracked branch.
            foreach (var repository in Repositories)
            {
                foreach (var branch in Branches)
                {
                    ActionCentre.ActionProviders.Add(new SubmoduleAnalyzer(baseClient.WithBranch(branch).WithRepository(repository)));
                    ActionCentre.ActionProviders.Add(new BumpProvisionatorDependenciesActionProvider(baseClient.WithBranch(branch).WithRepository(repository)));
                }
            }

            // For each tracked branch we should make sure the latest designer commit is integrated with VS and XS.
            foreach (var branch in Branches)
            {
                var br = branch == "d16-1" ? "d16-1-new-document-model" : branch;
                ActionCentre.ActionProviders.Add(new BumpIncludedDesignerActionProvider(baseClient.WithBranch(br).WithRepository(DesignerRepository)));
                ActionCentre.ActionProviders.Add(new BumpVSMRoslynActionProvider(baseClient.WithBranch(branch).WithRepository(DesignerRepository)));
            }

            // For each tracked repository we should keep tabs on open PRs
            //foreach (var repository in Repositories) {
            //	ActionCentre.ActionProviders.Add (new ReviewPullRequestActionProvider (baseClient.WithRepository (repository), CancellationToken.None));
            //	ActionCentre.ActionProviders.Add (new VSMBuddyTestActionProvider (baseClient.WithRepository (repository), new Downloader ()));
            //}

            ActionCentre.Refresh();
        }
Exemplo n.º 2
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     foreach (var repository in Repositories)
     {
         ActionCentre.ActionProviders.Add(new ReviewPullRequestActionProvider(Client, repository, CancellationToken.None, Usernames));
     }
     ActionCentre.Refresh();
 }