dist/lib/label.js
function getLabels(_ref3) {
  var api = _ref3.api;
  var token = _ref3.token;
  var repo = _ref3.repo;

  return (0, _request2.default)({
    headers: { 'User-Agent': 'request', 'Authorization': 'token ' + token },
    url: api + '/' + repo + '/labels',
    method: 'GET',
    json: true
  });
}
function getLabels(_ref3) {
  var api = _ref3.api;
  var token = _ref3.token;
  var repo = _ref3.repo;

  return (0, _request2.default)({
    headers: { 'User-Agent': 'request', 'Authorization': 'token ' + token },
    url: api + '/' + repo + '/labels',
    method: 'GET',
    json: true
  });
}
function getLabels ( _ref3 ) { var api = _ref3 . api ; var token = _ref3 . token ; var repo = _ref3 . repo ; return ( 0 , _request2 . default ) ( { headers : { 'User-Agent' : 'request' , 'Authorization' : 'token ' + token } , url : api + '/' + repo + '/labels' , method : 'GET' , json : true } ) ; }
Retrieves a list of labels from Github

@name getLabels
@function
@param {Object} server the server configuration object
@param {String} server.api the api endpoint to connect to
@param {String} server.token the api token to use
@param {String} server.repo the git repo to manipulate
@return {Promise}
Retrieves a list of labels from Github