Github.listRepoCommits()

Fetch recent commits from the specified GitHub repository.

Usage

Hover over inputs/exits for more info.

var Github = require('machinepack-github');


// Fetch recent commits from the specified GitHub repository.

Github.listRepoCommits({

repo: 'sails',

owner: 'balderdashy',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

repo required

The name of the Github repo (i.e. as it appears in the URL on GitHub)

'sails'
owner required

The name of the organization or user that owns the repo (i.e. as it appears in the URL on GitHub)

'balderdashy'

Exits

error

An unexpected error occurred.

success

OK.

[ { author: 
     { name: 'sgress454',
       username: 'sgress454',
       avatarUrl: 'https://avatars.githubusercontent.com/u/583701?v=3',
       profileUrl: 'https://github.com/sgress454' },
    commitUrl: 'https://github.com/balderdashy/sails/commit/5685d673dc346f226a229021af38556062e32a3d',
    timestamp: '2015-04-14T21:14:43Z' } ]