2016-09-26 92 views
9

目前有什么方法可以根据新评论功能的状态来过滤GitHub Pull请求吗? (即变更请求,批准)过滤GitHub Pull请求评论

以前,我会按照LGTM in:comments或根据反应进行过滤,具体取决于团队。

回答

0

GitHub.com对审查要求最近releasedthe预览API:

可以list all pull requests for a given repository,然后为每个拉请求ID,你可以查询,审查通过使用List reviews on a pull request端点来提取请求。

注意:您可以按照上面的解释来做到这一点。也许有一天,list all pull requests endpoint将有一个参数按照审阅状态过滤,但我在API文档中没有看到。

希望这会有所帮助。

0

除了在bitoiu的中提到的API之外,搜索过滤器现在(2017年1月,4个月后)支持拉取请求的审阅状态!

请参阅“Filter pull request reviews and review requests

为了方便查找需要您注意拉请求,您现在可以filter by review status从仓库拉请求索引。

https://cloud.githubusercontent.com/assets/1319791/22212644/7711bef8-e15f-11e6-8331-5973635cd6ee.png

还可以过滤已经由一个特定的用户审查和快速找到那些需要您的评论在过去决定哪些首先需要你的关注拉请求。

https://cloud.githubusercontent.com/assets/1319791/22213591/bdedfab4-e162-11e6-8777-07bbcbd37066.png