如何列出在GitHub Enterprise存储库中发布的请求请求的注释

问题描述 投票:0回答:1

根据GitHub REST API,要列出在GitHub Pull Request上发布的评论,我们需要将URL地址放在一起:

/repos/:owner/:repo/pulls/:pull_number/comments

此URL中有三个参数::owner:repo:pull_number

这是一个curl命令行示例,该示例在一个“拉取请求”中获得json响应:

curl "https://api.github.com/repos/37signals/sub/issues/2/comments" -v

让我们将该URL分解...

:owner在这里是37signals:reposub:pull_number2

我正在使用的请求请求是:

https://github.prod.mycompany.com/MyTeamName/MyRepoName/pull/3

同样,为了将GitHub API URL地址放在一起,我需要:owner:repo:pull_number

我尝试过:

curl https://api.github.com/repos/mycompany/MyRepoName/issues/3/comments -v

但是它返回Not Found错误。

提出API请求的正确URL是什么?

git github
1个回答
0
投票

通过Github Enterprise,我们提供了许多不同的API URL,我们都可以使用它们:

© www.soinside.com 2019 - 2024. All rights reserved.