+
Skip to content

issues.get is not a function #311

Closed
Closed
@matiasfha

Description

@matiasfha

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载