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

     1  {
     2      "diffs": [
     3          {
     4              "source": {
     5                  "components": [
     6                      "path",
     7                      "to",
     8                      "file.txt"
     9                  ],
    10                  "parent": "path/to",
    11                  "name": "file.txt",
    12                  "extension": "txt",
    13                  "toString": "path/to/file.txt"
    14              },
    15              "destination": {
    16                  "components": [
    17                      "path",
    18                      "to",
    19                      "file.txt"
    20                  ],
    21                  "parent": "path/to",
    22                  "name": "file.txt",
    23                  "extension": "txt",
    24                  "toString": "path/to/file.txt"
    25              },
    26              "hunks": [
    27                  {
    28                      "sourceLine": 1,
    29                      "sourceSpan": 1,
    30                      "destinationLine": 1,
    31                      "destinationSpan": 2,
    32                      "segments": [
    33                          {
    34                              "type": "REMOVED",
    35                              "lines": [
    36                                  {
    37                                      "destination": 1,
    38                                      "source": 1,
    39                                      "line": "import sys",
    40                                      "truncated": false
    41                                  }
    42                              ],
    43                              "truncated": false
    44                          },
    45                          {
    46                              "type": "ADDED",
    47                              "lines": [
    48                                  {
    49                                      "destination": 1,
    50                                      "source": 2,
    51                                      "line": "import re",
    52                                      "truncated": false,
    53                                      "conflictMarker": "OURS",
    54                                      "commentIds": [
    55                                          1
    56                                      ]
    57                                  },
    58                                  {
    59                                      "destination": 2,
    60                                      "source": 3,
    61                                      "line": "import os",
    62                                      "truncated": false
    63                                  }
    64                              ],
    65                              "truncated": false
    66                          }
    67                      ],
    68                      "truncated": false
    69                  }
    70              ],
    71              "lineComments": [
    72                  {
    73                      "properties": {
    74                          "key": "value"
    75                      },
    76                      "id": 1,
    77                      "version": 1,
    78                      "text": "An insightful comment.",
    79                      "author": {
    80                          "name": "jcitizen",
    81                          "emailAddress": "jane@example.com",
    82                          "id": 101,
    83                          "displayName": "Jane Citizen",
    84                          "active": true,
    85                          "slug": "jcitizen",
    86                          "type": "NORMAL"
    87                      },
    88                      "createdDate": 1583713477921,
    89                      "updatedDate": 1583713477921,
    90                      "comments": [],
    91                      "tasks": [],
    92                      "severity": "NORMAL",
    93                      "state": "OPEN",
    94                      "permittedOperations": {
    95                          "editable": true,
    96                          "deletable": true
    97                      }
    98                  }
    99              ],
   100              "truncated": true,
   101              "contextLines": 10,
   102              "fromHash": "a0f224fd7bd5f28ea5a752d41b9c9f6372fc6d9e",
   103              "toHash": "dc93f22caadcde35daf5cc2cd65d2738c87e31ca",
   104              "whiteSpace": "SHOW"
   105          }
   106      ],
   107      "truncated": true,
   108      "contextLines": 10,
   109      "fromHash": "a0f224fd7bd5f28ea5a752d41b9c9f6372fc6d9e",
   110      "toHash": "dc93f22caadcde35daf5cc2cd65d2738c87e31ca",
   111      "whiteSpace": "SHOW"
   112  }