From 2e2eece0852bfd9892eb8635bec8303082745376 Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Thu, 14 Jun 2012 22:47:39 +0200 Subject: [PATCH] Web: Use github.com API v3 for "Recent Commits" --- htdocs/site/js/github.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/site/js/github.js b/htdocs/site/js/github.js index 4ba9eda48..94b678eda 100644 --- a/htdocs/site/js/github.js +++ b/htdocs/site/js/github.js @@ -4,14 +4,14 @@ jQuery.fn.listCommits = function(username, repository, branch) { this.html('Querying GitHub for recent commits…'); var target = this; - $.getJSON('http://github.com/api/v2/json/commits/list/' + username + '/' + repository + '/' + branch + '?callback=?', function(data) { - var repos = data.commits; + $.getJSON('https://api.github.com/repos/' + username + '/' + repository + '/commits?sha=' + branch + '&callback=?', function(response) { + var commits = response.data; var list = $('