Contents

プルリクエストコメントの取得

GET /api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests/:number/comments

プルリクエストのコメントの一覧を取得します。

実行可能な権限

管理者
一般ユーザー

URL パラメーター

パラメーター名内容
projectIdOrKeystringプロジェクトのID または プロジェクトキー
repoIdOrNamestringリポジトリのID または リポジトリ名
numberintプルリクエストの番号

クエリパラメーター

パラメーター名内容
minIdint最小ID
maxIdint最大ID
countint取得上限(1-100) 指定が無い場合は20
orderstring”asc”または”desc” 指定が無い場合は”desc”

レスポンス例

ステータスライン / レスポンスヘッダ

HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8

レスポンスボディ

[
    {
        "id": 35,
        "content": "from api",
        "changeLog": [
            {
                "field": "dependentIssue",
                "newValue": "GIT-3",
                "originalValue": null
            }
        ],
        "createdUser": {
            "id": 1,
            "userId": "admin",
            "name": "admin",
            "roleType": 1,
            "lang": "ja",
            "nulabAccount": {
                "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
                "name": "admin",
                "uniqueId": "admin"
            },
            "mailAddress": "eguchi@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        },
        "created":"2015-05-14T01:53:38Z",
        "updated":"2015-05-14T01:53:38Z",
        "stars":[],
        "notifications":[]
    },
    // ...
]

エラーレスポンス

エラーレスポンスを参照してください。

制限事項

レート制限を参照してください