src/repositories/releases.js
function() {
		var deferred = Q.defer();

		try {
			request
				.get(getRepoUrl('releases'))
				.set('Authorization', 'token ' + config.token)
				.then(function(res) {
					logRequestSuccess(res);
					deferred.resolve(res.body);
				}, 
				function(err) {
					logRequestError(err);
					deferred.reject(err.message);
				});
		} catch(err) {
			console.log(err);
			deferred.reject(err.message);
		}

		return deferred.promise;
	}
function() {
		var deferred = Q.defer();

		try {
			request
				.get(getRepoUrl('releases'))
				.set('Authorization', 'token ' + config.token)
				.then(function(res) {
					logRequestSuccess(res);
					deferred.resolve(res.body);
				}, 
				function(err) {
					logRequestError(err);
					deferred.reject(err.message);
				});
		} catch(err) {
			console.log(err);
			deferred.reject(err.message);
		}

		return deferred.promise;
	}
function ( ) { var deferred = Q . defer ( ) ; try { request . get ( getRepoUrl ( 'releases' ) ) . set ( 'Authorization' , 'token ' + config . token ) . then ( function ( res ) { logRequestSuccess ( res ) ; deferred . resolve ( res . body ) ; } , function ( err ) { logRequestError ( err ) ; deferred . reject ( err . message ) ; } ) ; } catch ( err ) { console . log ( err ) ; deferred . reject ( err . message ) ; } return deferred . promise ; }
This returns a list of releases, which does not include regular Git tags that have not been
associated with a release. To get a list of Git tags, use the Repository Tags API. Information
about published releases are available to everyone. Only users with push access will receive
listings for draft releases.
@return {JSON}			A list of release data
This returns a list of releases which does not include regular Git tags that have not been associated with a release . To get a list of Git tags use the Repository Tags API . Information about published releases are available to everyone . Only users with push access will receive listings for draft releases .