github.com/gfleury/gobbs@v0.0.0-20200831213239-44ca2b94c1a1/pullrequests/mocked_responses/Get.json (about)

     1  {
     2      "id": 101,
     3      "version": 1,
     4      "title": "Talking Nerdy",
     5      "description": "It’s a kludge, but put the tuple from the database in the cache.",
     6      "state": "OPEN",
     7      "open": true,
     8      "closed": false,
     9      "createdDate": 1359075920,
    10      "updatedDate": 1359085920,
    11      "fromRef": {
    12          "id": "refs/heads/feature-ABC-123",
    13          "latestCommit": "7549846524f8aed2bd1c0249993ae1bf9d3c9998",
    14          "repository": {
    15              "slug": "my-repo",
    16              "name": null,
    17              "project": {
    18                  "key": "PRJ"
    19              }
    20          }
    21      },
    22      "toRef": {
    23          "id": "refs/heads/master",
    24          "repository": {
    25              "slug": "my-repo",
    26              "name": null,
    27              "project": {
    28                  "key": "PRJ"
    29              }
    30          }
    31      },
    32      "locked": false,
    33      "author": {
    34          "user": {
    35              "name": "tom",
    36              "emailAddress": "tom@example.com",
    37              "id": 115026,
    38              "displayName": "Tom",
    39              "active": true,
    40              "slug": "tom",
    41              "type": "NORMAL"
    42          },
    43          "role": "AUTHOR",
    44          "approved": true,
    45          "status": "APPROVED"
    46      },
    47      "reviewers": [
    48          {
    49              "user": {
    50                  "name": "jcitizen",
    51                  "emailAddress": "jane@example.com",
    52                  "id": 101,
    53                  "displayName": "Jane Citizen",
    54                  "active": true,
    55                  "slug": "jcitizen",
    56                  "type": "NORMAL"
    57              },
    58              "lastReviewedCommit": "7549846524f8aed2bd1c0249993ae1bf9d3c9998",
    59              "role": "REVIEWER",
    60              "approved": true,
    61              "status": "APPROVED"
    62          }
    63      ],
    64      "participants": [
    65          {
    66              "user": {
    67                  "name": "dick",
    68                  "emailAddress": "dick@example.com",
    69                  "id": 3083181,
    70                  "displayName": "Dick",
    71                  "active": true,
    72                  "slug": "dick",
    73                  "type": "NORMAL"
    74              },
    75              "role": "PARTICIPANT",
    76              "approved": false,
    77              "status": "UNAPPROVED"
    78          },
    79          {
    80              "user": {
    81                  "name": "harry",
    82                  "emailAddress": "harry@example.com",
    83                  "id": 99049120,
    84                  "displayName": "Harry",
    85                  "active": true,
    86                  "slug": "harry",
    87                  "type": "NORMAL"
    88              },
    89              "role": "PARTICIPANT",
    90              "approved": true,
    91              "status": "APPROVED"
    92          }
    93      ],
    94      "links": {
    95          "self": [
    96              {
    97                  "href": "http://link/to/pullrequest"
    98              }
    99          ]
   100      }
   101  }