Fetch recent comments from the specified GitHub repository.
var Github = require('machinepack-github');
// Fetch recent comments from the specified GitHub repository.
Github.listIssueComments({
repo: 'sails',
owner: 'balderdashy',
issueNumber: 237,
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// OK.
success: function (result) {
},
});
The name of the Github repo (i.e. as it appears in the URL on GitHub)
'sails'
The name of the organization or user that owns the repo (i.e. as it appears in the URL on GitHub)
'balderdashy'
The issue number of the issue to close.
237
An unexpected error occurred.
OK.
[
{
author: {
username: 'sgress454',
avatarUrl: 'https://avatars.githubusercontent.com/u/583701?v=3',
profileUrl: 'https://github.com/sgress454'
},
body: 'Bump +1 I haz this issue too',
timestamp: '2015-04-14T21:14:43Z',
id: 187625171,
url: 'https://github.com/balderdashy/sails/issues/3594#issuecomment-187625171'
}
]