Skip to content

Commit 7dbd929

Browse files
committed
Add listStatuses repo endpoint
1 parent f63deb8 commit 7dbd929

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

github.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,16 @@
329329
_request('DELETE', repoPath, options, cb);
330330
};
331331

332+
this.listStatuses = function(sha, cb) {
333+
_request('GET', repoPath + '/statuses/' + sha, null, function(err, heads, xhr) {
334+
if (err) {
335+
return cb(err);
336+
}
337+
338+
cb(null, heads, xhr);
339+
})
340+
};
341+
332342
// Uses the cache if branch has not been changed
333343
// -------
334344

0 commit comments

Comments
 (0)