public GetSyncOptions ( NGitLab.Models.MergeRequest mergeRequest ) : |
||
mergeRequest | NGitLab.Models.MergeRequest | |
Результат |
void RefreshSelectedBranch() { Branch = Repositories?.SelectedBranch; var mergeRequest = Branch?.MergeRequest; if (mergeRequest == null) { comment = null; assignedToService = false; performTesting = false; IsModified = false; } else { if (Branch.SupportsTesting) { var syncOptions = Branch.GetSyncOptions(mergeRequest.MergeRequest); performTesting = syncOptions?.PerformTesting ?? false; assignedToService = (syncOptions?.AssignToSyncService ?? false) && IsTestUser(mergeRequest.Assignee); } else { assignedToService = mergeRequest.Assignee == Branch.SyncServiceName; performTesting = false; } comment = mergeRequest.Title; IsModified = false; } SupportsTesting = Branch?.SupportsTesting ?? false; RaisePropertyChanged(null); }
void RefreshSelectedBranch() { Branch = Repositories?.SelectedBranch; var mergeRequest = Branch?.MergeRequest; if (mergeRequest == null) { comment = null; assignedToService = false; performTesting = false; performVisualTesting = false; IsModified = false; } else { if (Branch.SupportsTesting) { var syncOptions = Branch.GetSyncOptions(mergeRequest.MergeRequest); this.performTesting = syncOptions?.TestIntegration ?? false; this.performVisualTesting = Branch.GetVisualTestingStatus(mergeRequest.MergeRequest); assignedToServiceAfterTesting = syncOptions?.AssignToSyncService ?? false; assignedToService = !assignedToServiceAfterTesting && mergeRequest.Assignee == Branch.SyncServiceName; } else { assignedToService = mergeRequest.Assignee == Branch.SyncServiceName; performTesting = false; this.performVisualTesting = false; } comment = mergeRequest.Title; IsModified = false; } SupportsTesting = Branch?.SupportsTesting ?? false; RaisePropertyChanged(null); }
void RefreshSelectedBranch() { Branch = Repositories?.SelectedBranch; var mergeRequest = Branch?.MergeRequest; if (mergeRequest == null) { comment = null; assignedToService = false; performTesting = false; IsModified = false; } else { if (Branch.SupportsTesting) { var syncOptions = Branch.GetSyncOptions(mergeRequest.MergeRequest); performTesting = syncOptions?.PerformTesting ?? false; assignedToService = (syncOptions?.AssignToSyncService ?? false) && IsTestUser(mergeRequest.Assignee); } else { assignedToService = mergeRequest.Assignee == Branch.SyncServiceName; performTesting = false; } comment = mergeRequest.Title; IsModified = false; } SupportsTesting = Branch?.SupportsTesting ?? false; RaisePropertyChanged(null); }