From f2cd99f247dcd953080a1e3826e3c4ef6fdeb31d Mon Sep 17 00:00:00 2001 From: Richard Astbury Date: Thu, 3 Oct 2013 16:57:52 +0100 Subject: [PATCH] added support for getting repo commits --- github.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/github.js b/github.js index 2cdefc37..123d43aa 100644 --- a/github.js +++ b/github.js @@ -358,6 +358,13 @@ _request("GET", repoPath, null, cb); }; + // Get commits + // -------- + + this.commits = function(cb) { + _request("GET", repoPath + "/commits", null, cb); + }; + // Get contents // --------