Inheritance: BindableBase
Esempio n. 1
0
 void Initialize(CommitViewModel commit)
 {
     Artifact = commit.DownloadArtifacts();
     Initialize(Artifact);
 }
 void UseCommitDescription(CommitViewModel commit)
 {
     BranchViewModel.UpdateMergeRequest(commit.Title, BranchViewModel.MergeRequest.MergeRequest.Description, BranchViewModel.MergeRequest.Assignee);
     RepositoriesViewModel.RaiseRefreshSelectedBranch();
 }
        void PerformAbortTest(CommitViewModel commit)
        {
            var actualCommit = commit ?? BranchViewModel.MergeRequest.Commits.FirstOrDefault();

            BranchViewModel.AbortBuild(BranchViewModel.MergeRequest.MergeRequest, actualCommit?.Build.Build);
        }
 void PerformShowLogs(CommitViewModel model)
 {
     ShowLogsService.Show(model);
 }
 bool CanUseCommitDescription(CommitViewModel commit)
 {
     return(commit != null && BranchViewModel?.MergeRequest != null);
 }
Esempio n. 6
0
 void Initialize(CommitViewModel commit)
 {
     Artifact = commit.DownloadArtifacts();
     Initialize(Artifact);
 }
 void PerformShowLogs(CommitViewModel model)
 {
     ShowLogsService.Show(model);
 }
        void PerformForceTest(CommitViewModel commit)
        {
            var actualCommit = commit ?? BranchViewModel.MergeRequest.Commits.FirstOrDefault();

            BranchViewModel.ForceBuild(BranchViewModel.MergeRequest.MergeRequest, actualCommit?.Build.Build);
        }
 bool CanPerformShowLogs(CommitViewModel model)
 {
     if (model == null)
         return false;
     var buildStatus = model.Build?.BuildStatus;
     return buildStatus == BuildStatus.failed || buildStatus == BuildStatus.success;
 }
 bool CanPerformForceTest(CommitViewModel commit)
 {
     if (BranchViewModel?.MergeRequest == null)
         return false;
     var actualCommit = commit ?? BranchViewModel.MergeRequest.Commits.FirstOrDefault();
     if (actualCommit == null)
         return false;
     return actualCommit.Build?.BuildStatus != BuildStatus.pending && actualCommit.Build?.BuildStatus != BuildStatus.running;
 }