1

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"

4

1 回答 1

0

只是答案,不要使用那个 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
于 2013-10-09T23:25:03.093 回答