in gulpfile.js [364:382]
function getTagDate(repoName, tagHash) {
var dfd = Q.defer();
// Get info about the tag via its hash (found with the ls-remote command)
request({
url: 'https://api.github.com/repos/apache/' + repoName + '/git/tags/' + tagHash, // Github API address
json: true,
headers: { 'User-Agent': 'apache' }
},
function(err, response) {
// Abort if the commit could not be found
if (err) {
dfd.reject(err);
}
// Set the date from this information and resolve
dfd.resolve(Date.parse(response.body.tagger.date));
}
);
return dfd.promise;
}