Skip to content

Instantly share code, notes, and snippets.

@hopbit
Last active December 15, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hopbit/5212170 to your computer and use it in GitHub Desktop.
Save hopbit/5212170 to your computer and use it in GitHub Desktop.
test
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