Skip to content

Instantly share code, notes, and snippets.

@jkrehm
Created July 24, 2015 18:36
Show Gist options
  • Save jkrehm/cb05558d0e6254991d0d to your computer and use it in GitHub Desktop.
Save jkrehm/cb05558d0e6254991d0d to your computer and use it in GitHub Desktop.
AJS.$(document).ajaxSuccess(function (e, xhr, settings) {
if (/\/dev-status\/.*dataType=repository/.test(settings.url)) {
xhr.done(function (data) {
var info = {};
data.detail[0].repositories.forEach(function (repository) {
info[repository.name] = info[repository.name] || [];
info[repository.name] = _.pluck(repository.commits, 'id');
});
console.log(info);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment