Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f3c27d

Browse files
committed
Add list commits for a repository
1 parent f283c10 commit 5f3c27d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

github.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,13 @@
419419
});
420420
});
421421
};
422+
423+
// List commits on a repository
424+
// -------
425+
426+
this.getCommits = function(cb) {
427+
_request("GET", repoPath + "/commits", null, cb);
428+
};
422429
};
423430

424431
// Gists API
@@ -496,4 +503,4 @@
496503
return new Github.Gist({id: id});
497504
};
498505
};
499-
}).call(this);
506+
}).call(this);

0 commit comments

Comments
 (0)