/// <summary>
        /// Gets the latest commit for current user
        /// </summary>
        /// <param name="org">Unique identifier of the organisation responsible for the app.</param>
        /// <param name="repository">The name of the repository</param>
        /// <returns>The latest commit</returns>
        public Altinn.Studio.Designer.Models.Commit GetLatestCommitForCurrentUser(string org, string repository)
        {
            List <Altinn.Studio.Designer.Models.Commit> commits = Log(org, repository);
            var currentUser = AuthenticationHelper.GetDeveloperUserName(_httpContextAccessor.HttpContext);

            Altinn.Studio.Designer.Models.Commit latestCommit = commits.FirstOrDefault(commit => commit.Author.Name == currentUser);
            return(latestCommit);
        }
        /// <summary>
        /// Gets the latest commit for current user
        /// </summary>
        /// <param name="org">Unique identifier of the organisation responsible for the app.</param>
        /// <param name="repository">The name of the repository</param>
        /// <returns>The latest commit</returns>
        public Altinn.Studio.Designer.Models.Commit GetLatestCommitForCurrentUser(string org, string repository)
        {
            var watch = System.Diagnostics.Stopwatch.StartNew();
            List <Altinn.Studio.Designer.Models.Commit> commits = Log(org, repository);
            var currentUser = AuthenticationHelper.GetDeveloperUserName(_httpContextAccessor.HttpContext);

            Altinn.Studio.Designer.Models.Commit latestCommit = commits.FirstOrDefault(commit => commit.Author.Name == currentUser);
            watch.Stop();
            _logger.Log(Microsoft.Extensions.Logging.LogLevel.Information, "Get latest commit- {0} ", watch.ElapsedMilliseconds);
            return(latestCommit);
        }