Closed
Description
I'm seeing this error when trying to get one issue
issues.get(issueNumber, function (err, issue) {
^
TypeError: issues.get is not a function
at getIssue (hearForGithubIssues.js:12:9)
at Object.<anonymous> (hearForGithubIssues.js:67:10)
Code:
const github = new Github({
token: token,
auth: 'oauth'
})
const issues = github.getIssues(userName, repoName)
issues.get(issueNumber, (err, issue) => {
if(err){
error(err)
return
}
callback(issue)
})
Metadata
Metadata
Assignees
Labels
No labels