mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated latest-commit to show from all repos
This commit is contained in:
@@ -28,17 +28,17 @@ $(document).ready(function (){
|
||||
}
|
||||
|
||||
git_info = $.ajax({ type: "GET",
|
||||
url: "https://api.github.com/repos/zoff-music/zoff/commits",
|
||||
async: false
|
||||
}).responseText;
|
||||
url: "https://api.github.com/users/zoff-music/received_events",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].commit.author.date.substring(0,10) +
|
||||
": " + git_info[0].committer.login +
|
||||
"<br><a href='"+git_info[0].html_url+"'>" +
|
||||
git_info[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].commit.message+"<br");
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].created_at.substring(0,10) +
|
||||
": " + git_info[0].actor.display_login +
|
||||
"<br><a href='"+git_info[0].payload.commits[0].url+"'>" +
|
||||
git_info[0].payload.commits[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].payload.commits[0].message+"<br");
|
||||
});
|
||||
|
||||
$("#playbutton").on("click", function()
|
||||
|
||||
Reference in New Issue
Block a user