Github API:仅搜索尚未请求/批准更改的未决/待决请求

时间:2020-09-29 04:13:15

标签: api 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"

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

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

0 个答案:

没有答案