我一直在查看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'