I run these lines using https://github.com/michael/github which is a wrapper for the GitHub API
issues.list
label: "high",
(err, issues) ->
createTable issues
It keeps listing all of the issues and not the ones with the label "high"
I run these lines using https://github.com/michael/github which is a wrapper for the GitHub API
issues.list
label: "high",
(err, issues) ->
createTable issues
It keeps listing all of the issues and not the ones with the label "high"
只是答案,不要使用那个 API .. 这是一个函数式 JQuery
$.ajax
beforeSend: (request) ->
request.setRequestHeader "Authorization", """token #{settings.token}"""
url: """https://api.github.com/repos/#{settings.user}/#{settings.repo}/issues?labels=high"""
dataType: "json"
success: (data) ->
console.log data[0].title