github.com/gfleury/gobbs@v0.0.0-20200831213239-44ca2b94c1a1/pullrequests/mocked_responses/Create.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": 1359075920,
    11      "fromRef": {
    12          "id": "refs/heads/feature",
    13          "displayId": "feature-ABC-123",
    14          "latestCommit": "babecafebabecafebabecafebabecafebabecafe",
    15          "repository": {
    16              "slug": "my-repo",
    17              "id": 1,
    18              "name": "My repo",
    19              "description": "My repo description",
    20              "hierarchyId": "e3c939f9ef4a7fae272e",
    21              "scmId": "git",
    22              "state": "AVAILABLE",
    23              "statusMessage": "Available",
    24              "forkable": true,
    25              "project": {
    26                  "key": "PRJ",
    27                  "id": 1,
    28                  "name": "My Cool Project",
    29                  "description": "The description for my cool project.",
    30                  "public": true,
    31                  "type": "NORMAL",
    32                  "links": {
    33                      "self": [
    34                          {
    35                              "href": "http://link/to/project"
    36                          }
    37                      ]
    38                  }
    39              },
    40              "public": true,
    41              "links": {
    42                  "clone": [
    43                      {
    44                          "href": "ssh://git@<baseURL>/PRJ/my-repo.git",
    45                          "name": "ssh"
    46                      },
    47                      {
    48                          "href": "https://<baseURL>/scm/PRJ/my-repo.git",
    49                          "name": "http"
    50                      }
    51                  ],
    52                  "self": [
    53                      {
    54                          "href": "http://link/to/repository"
    55                      }
    56                  ]
    57              }
    58          }
    59      },
    60      "toRef": {
    61          "id": "refs/heads/master",
    62          "displayId": "master",
    63          "latestCommit": "cafebabecafebabecafebabecafebabecafebabe",
    64          "repository": {
    65              "slug": "my-repo",
    66              "id": 1,
    67              "name": "My repo",
    68              "description": "My repo description",
    69              "hierarchyId": "e3c939f9ef4a7fae272e",
    70              "scmId": "git",
    71              "state": "AVAILABLE",
    72              "statusMessage": "Available",
    73              "forkable": true,
    74              "project": {
    75                  "key": "PRJ",
    76                  "id": 1,
    77                  "name": "My Cool Project",
    78                  "description": "The description for my cool project.",
    79                  "public": true,
    80                  "type": "NORMAL",
    81                  "links": {
    82                      "self": [
    83                          {
    84                              "href": "http://link/to/project"
    85                          }
    86                      ]
    87                  }
    88              },
    89              "public": true,
    90              "links": {
    91                  "clone": [
    92                      {
    93                          "href": "ssh://git@<baseURL>/PRJ/my-repo.git",
    94                          "name": "ssh"
    95                      },
    96                      {
    97                          "href": "https://<baseURL>/scm/PRJ/my-repo.git",
    98                          "name": "http"
    99                      }
   100                  ],
   101                  "self": [
   102                      {
   103                          "href": "http://link/to/repository"
   104                      }
   105                  ]
   106              }
   107          }
   108      },
   109      "locked": false,
   110      "author": {
   111          "user": {
   112              "name": "alice",
   113              "emailAddress": "alice@example.com",
   114              "id": 92903040,
   115              "displayName": "Alice",
   116              "active": true,
   117              "slug": "alice",
   118              "type": "NORMAL"
   119          },
   120          "role": "PARTICIPANT",
   121          "approved": false,
   122          "status": "UNAPPROVED"
   123      },
   124      "reviewers": [
   125          {
   126              "user": {
   127                  "name": "jcitizen",
   128                  "emailAddress": "jane@example.com",
   129                  "id": 101,
   130                  "displayName": "Jane Citizen",
   131                  "active": true,
   132                  "slug": "jcitizen",
   133                  "type": "NORMAL"
   134              },
   135              "lastReviewedCommit": "7549846524f8aed2bd1c0249993ae1bf9d3c9998",
   136              "role": "REVIEWER",
   137              "approved": false,
   138              "status": "UNAPPROVED"
   139          }
   140      ],
   141      "participants": [],
   142      "links": {
   143          "self": [
   144              {
   145                  "href": "http://link/to/pullrequest"
   146              }
   147          ]
   148      }
   149  }