Github API获取文件中的注释

时间:2018-05-29 23:50:22

标签: github github-api

通过gh api v3的文档阅读,我无法找到一个端点,它会在一行中返回给我的注释。是否可以获取评论以便删除或编辑它们?

1 个答案:

答案 0 :(得分:1)

要获取拉取请求审核评论,您可以使用Github API v3 list review comments on pull request

GET /repos/:owner/:repo/pulls/:number/comments

例如:https://api.github.com/repos/mui-org/material-ui/pulls/3132/comments

要修改/删除评论评论,请获取评论评论ID,然后使用edit review comment APIdelete review comment API