首页 > 解决方案 > Github API:仅搜索尚未请求/批准的更改的打开/挂起的拉取请求

问题描述

我正在尝试使用以下方法获取打开的拉取请求列表:

'https://api.github.com/search/issues?q=is:open+is:pr+org:myOrg+draft:false'

但我也得到了批准的请求,这不是我想要的。

openPrData: Array(3)
  0: {...}
  1: {...}
  2: 
    id: 77
    repo: "example"
    title: "Update example"
    author: "exampleAuthor"
    status: "open"
  

approvedPullRequests: Array(1)
  0: 
    id: 77
    repo: "example"
    title: "Update example"
    author: "exampleAuthor"
    status: "good"

如何仅过滤尚未请求或批准更改的请求?

我看过这里,但我找不到解决我的问题的方法。

标签: apigithub-api

解决方案


推荐阅读