public IActionResult PullRemoteChanges(string org, string app) { AltinnStudioViewModel model = new AltinnStudioViewModel(); _sourceControl.PullRemoteChanges(org, app); return(RedirectToAction("index", new { Org = org, Service = app })); }
/// <inheritdoc/> public RepoStatus PullRemoteChanges(string org, string repository) { try { return(_decoratedService.PullRemoteChanges(org, repository)); } catch (Exception ex) { LogError(ex, "PullRemoteChanges", org, repository); throw; } }
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); }