/// <summary> /// Creates the remote repository /// </summary> /// <param name="org">The owning organization</param> /// <param name="createRepoOption">Options for the remote repository</param> /// <returns>The repostory from API</returns> public AltinnCore.RepositoryClient.Model.Repository CreateRepository(string org, AltinnCore.RepositoryClient.Model.CreateRepoOption createRepoOption) { return(_gitea.CreateRepositoryForOrg(AuthenticationHelper.GetGiteaSession(_httpContextAccessor.HttpContext, _settings.GiteaCookieName), org, createRepoOption).Result); }