Github API:是否可以按标签列出Pull请求



我一直在查看API文档,但我找不到实现这一点的方法。我想我会问这里,以防有人知道。谢谢

使用搜索问题API端点:

  • 使用repo关键字按repo进行筛选(例如repo:ionicabizau/scrape-it
  • 使用is:pr过滤拉请求(请注意,拉请求是问题,但问题是而不是拉请求)
  • 使用label关键字按标签进行筛选:label:your-label

示例:

https://api.github.com/search/issues?q=is:pr%20label:enhancement%20repo:ionicabizau/scrape-it

像这样使用GitHub CLI(gh)gh api 'search/issues?q=repo:your-org/your-repo+is:pr+label:your-label'

最新更新