Example #1
0
        public IActionResult PullRemoteChanges(string org, string app)
        {
            AltinnStudioViewModel model = new AltinnStudioViewModel();

            _sourceControl.PullRemoteChanges(org, app);
            return(RedirectToAction("index", new { Org = org, Service = app }));
        }
Example #2
0
 /// <inheritdoc/>
 public RepoStatus PullRemoteChanges(string org, string repository)
 {
     try
     {
         return(_decoratedService.PullRemoteChanges(org, repository));
     }
     catch (Exception ex)
     {
         LogError(ex, "PullRemoteChanges", org, repository);
         throw;
     }
 }
Example #3
0
        public RepoStatus Pull(string owner, string repository)
        {
            RepoStatus pullStatus = _sourceControl.PullRemoteChanges(owner, repository);

            RepoStatus status = _sourceControl.RepositoryStatus(owner, repository);

            if (pullStatus.RepositoryStatus != Common.Enums.RepositoryStatus.Ok)
            {
                status.RepositoryStatus = pullStatus.RepositoryStatus;
            }

            return(status);
        }