/*! Inspired by: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html */ /* jshint quotmark:true, jquery:true */ jQuery.fn.listCommits = function(username, repository, branch) { this.html('Querying GitHub for recent commits…'); var target = this; $.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) { var commits = response.data, list = $('