Last active
December 15, 2015 05:49
-
-
Save hopbit/5212170 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gitKataBestCommiter = { | |
/** | |
* @type {string} | |
* @private | |
*/ | |
searchOnBitBucket_: 'https://api.bitbucket.org/1.0/repositories/wojtassj/git-kata-registration/changesets', | |
/** | |
* @param {ProgressEvent} e The XHR ProgressEvent. | |
* @private | |
*/ | |
showCommiters: function () { | |
$.getJSON(this.searchOnBitBucket_ , function (json) { | |
var hashes = []; | |
var authors = []; | |
$.each(json.changesets, function (index, result) { | |
document.write(result.node + " "); | |
document.write(result.author); | |
document.write("<br/>"); | |
hashes.push(result.node); | |
authors.push(result.author); | |
}); | |
console.log(hashes.join(", ")); | |
console.log(authors.join(", ")); | |
}) | |
} | |
}; | |
document.addEventListener('DOMContentLoaded', function () { | |
gitKataBestCommiter.showCommiters(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment