Skip to content
Browse files

github.js: normalize comment

  • Loading branch information...
1 parent 830f455 commit b2a36d58417943e349a1a0f5ee42fd9dcf0f8550 @XhmikosR XhmikosR committed with PKEuS
Showing with 3 additions and 2 deletions.
  1. +2 −2 htdocs/site/js/github.js
  2. +1 −0 htdocs/site/js/github.min.js
View
4 htdocs/site/js/github.js
@@ -1,5 +1,5 @@
-// Inspired by:
-// http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
+// Inspired by: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
+
jQuery.fn.listCommits = function(username, repository, branch) {
this.html('<span>Querying GitHub for recent commits&hellip;</span>');
View
1 htdocs/site/js/github.min.js
@@ -1 +1,2 @@
+// Inspired by: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html
jQuery.fn.listCommits=function(e,t,n){function i(e){var t=e.indexOf("\n");return t>-1?e.slice(0,t):e}this.html("<span>Querying GitHub for recent commits&hellip;</span>");var r=this;$.getJSON("https://api.github.com/repos/"+e+"/"+t+"/commits?sha="+n+"&callback=?",function(n){var s=n.data,o=$('<ul class="rssfeeditems"/>');r.empty().append(o),$(s).each(function(n){var r="https://github.com/"+e+"/"+t+"/commit/"+this.sha,s=i(this.commit.message),u=this.author.login;u==""&&(u=this.author.name),o.append('<li><a href="'+r+'">'+s+"</a> <em>by <strong>"+u+"</strong></em></li>");if(n==9)return!1})})};

0 comments on commit b2a36d5

Please sign in to comment.
Something went wrong with that request. Please try again.