使用 github js api:无法过滤问题

Working with the github js api : cant filter issues

本文关键字:过滤 问题 github js api 使用      更新时间:2023-09-26

我使用 https://github.com/michael/github 运行这些行,它是 GitHub API 的包装器

issues.list
  label: "high",
  (err, issues) ->
    createTable issues

它不断列出所有问题,而不是带有"高"标签的问题

只是答案,不要使用该 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