github.com/jenkins-x/jx/v2@v2.1.155/pkg/gits/test_data/bitbucket_server/pr.json (about)

     1  {
     2      "id": 1,
     3      "version": 2,
     4      "title": "Test Pull Request",
     5      "description": "Test Pull request description",
     6      "state": "OPEN",
     7      "open": true,
     8      "closed": false,
     9      "createdDate": 1528143723000,
    10      "updatedDate": 1528147801000,
    11      "closedDate": 1528147801000,
    12      "fromRef": {
    13          "id": "refs/heads/feat/world",
    14          "displayId": "feat/world",
    15          "latestCommit": "77aa2c3bc33aee96353bdee10dfd3c19d633d907",
    16          "repository": {
    17              "slug": "test-repo",
    18              "id": 264,
    19              "name": "test-repo",
    20              "scmId": "git",
    21              "state": "AVAILABLE",
    22              "statusMessage": "Available",
    23              "forkable": true,
    24              "project": {
    25                  "key": "TEST-ORG",
    26                  "id": 282,
    27                  "name": "test-org",
    28                  "description": "Test Org",
    29                  "public": false,
    30                  "type": "NORMAL",
    31                  "links": {
    32                      "self": [
    33                          {
    34                              "href": "http://auth.example.com/projects/TEST-ORG"
    35                          }
    36                      ]
    37                  }
    38              },
    39              "public": false,
    40              "links": {
    41                  "clone": [
    42                      {
    43                          "href": "http://test-user@auth.example.com/scm/test-org/test-repo.git",
    44                          "name": "http"
    45                      },
    46                      {
    47                          "href": "ssh://git@auth.example.com:7999/test-org/test-repo.git",
    48                          "name": "ssh"
    49                      }
    50                  ],
    51                  "self": [
    52                      {
    53                          "href": "http://auth.example.com/projects/TEST-ORG/repos/test-repo/browse"
    54                      }
    55                  ]
    56              }
    57          }
    58      },
    59      "toRef": {
    60          "id": "refs/heads/master",
    61          "displayId": "master",
    62          "latestCommit": "b2421c4f7e5b08a7823849033d4ad7ece16ce234",
    63          "repository": {
    64              "slug": "test-repo",
    65              "id": 264,
    66              "name": "test-repo",
    67              "scmId": "git",
    68              "state": "AVAILABLE",
    69              "statusMessage": "Available",
    70              "forkable": true,
    71              "project": {
    72                  "key": "TEST-ORG",
    73                  "id": 282,
    74                  "name": "test-org",
    75                  "description": "Test Org",
    76                  "public": false,
    77                  "type": "NORMAL",
    78                  "links": {
    79                      "self": [
    80                          {
    81                              "href": "http://auth.example.com/projects/TEST-ORG"
    82                          }
    83                      ]
    84                  }
    85              },
    86              "public": false,
    87              "links": {
    88                  "clone": [
    89                      {
    90                          "href": "http://test-user@auth.example.com/scm/test-org/test-repo.git",
    91                          "name": "http"
    92                      },
    93                      {
    94                          "href": "ssh://git@auth.example.com:7999/test-org/test-repo.git",
    95                          "name": "ssh"
    96                      }
    97                  ],
    98                  "self": [
    99                      {
   100                          "href": "http://auth.example.com/projects/TEST-ORG/repos/test-repo/browse"
   101                      }
   102                  ]
   103              }
   104          }
   105      },
   106      "locked": false,
   107      "author": {
   108          "user": {
   109              "name": "test-user",
   110              "emailAddress": "test.user@example.com",
   111              "id": 502,
   112              "displayName": "Test User",
   113              "active": true,
   114              "slug": "test-user",
   115              "type": "NORMAL",
   116              "links": {
   117                  "self": [
   118                      {
   119                          "href": "http://auth.example.com/users/test-user"
   120                      }
   121                  ]
   122              }
   123          },
   124          "role": "AUTHOR",
   125          "approved": false,
   126          "status": "UNAPPROVED"
   127      },
   128      "reviewers": [],
   129      "participants": [],
   130      "links": {
   131          "self": [
   132              {
   133                  "href": "http://auth.example.com/projects/TEST-ORG/repos/test-repo/pull-requests/5"
   134              }
   135          ]
   136      }
   137  }