根据开始和结束日期过滤 bitbucket 拉取请求

Vis*_*ure 6 git bitbucket bitbucket-api

我正在使用 Bitbucket REST API 版本 2.0获取特定存储库的拉取请求。

https://developer.atlassian.com/bitbucket/api/2/reference/search?q=tag:pullrequests

下面的 REST API 可以工作并列出所有拉取请求。

/repositories/{username}/{repo_slug}/pullrequests

现在我想在上面的 API 上应用过滤器,例如

  1. 通过传递开始和结束日期获取所有拉取请求
  2. 计算所有已批准/拒绝的拉取请求。