function loadFromGitlab(url, projectid) {
    metadata.projectid = projectid;
    return new Promise(function(resolve, reject) {
      $http({
        method: 'GET',
        url: url,
        headers: {
          accept: 'application/x-yaml,text/yaml,application/json,*/*'
        }
      }).then(function(resp) {
        if (angular.isObject(resp.data)) {
          loadGithub(resp.data).then(resolve, reject);
        }
      }, reject);
    });
  }
/**
  * Load a file from Gitlab
  *
  * @param {string} url - the URL to load from
  @param {string} projectid - the project identifier
  * @return {Promise} - resolves to content of the file
 */
Load a file from Gitlab
@param {string} url - the URL to load from
Load a file from Gitlab @param { string } url - the URL to load from
function loadFromGitlab(url, projectid) {
    metadata.projectid = projectid;
    return new Promise(function(resolve, reject) {
      $http({
        method: 'GET',
        url: url,
        headers: {
          accept: 'application/x-yaml,text/yaml,application/json,*/*'
        }
      }).then(function(resp) {
        if (angular.isObject(resp.data)) {
          loadGithub(resp.data).then(resolve, reject);
        }
      }, reject);
    });
  }
function loadFromGitlab ( url , projectid ) { metadata . projectid = projectid ; return new Promise ( function ( resolve , reject ) { $http ( { method : 'GET' , url : url , headers : { accept : 'application/x-yaml,text/yaml,application/json,*/*' } } ) . then ( function ( resp ) { if ( angular . isObject ( resp . data ) ) { loadGithub ( resp . data ) . then ( resolve , reject ) ; } } , reject ) ; } ) ; }
Load a file from Gitlab
 @param {string} url - the URL to load from
Load a file from Gitlab @param { string } url - the URL to load from