github.com/go-playground/webhooks/v6@v6.3.0/testdata/bitbucket-server/pr-deleted.json (about)

     1  {
     2    "eventKey": "pr:deleted",
     3    "date": "2019-03-01T10:17:10+0100",
     4    "actor": {
     5      "name": "gopher",
     6      "emailAddress": "gopher@foo.bar",
     7      "id": 3231,
     8      "displayName": "Foo Bar",
     9      "active": true,
    10      "slug": "gopher",
    11      "type": "NORMAL",
    12      "links": {
    13        "self": [
    14          {
    15            "href": "https://server.bitbucket.local/users/gopher"
    16          }
    17        ]
    18      }
    19    },
    20    "pullRequest": {
    21      "id": 2,
    22      "version": 26,
    23      "title": "Update README",
    24      "description": "yada yada yada",
    25      "state": "OPEN",
    26      "open": true,
    27      "closed": false,
    28      "createdDate": 1550436762919,
    29      "updatedDate": 1551431770064,
    30      "fromRef": {
    31        "id": "refs/heads/feature/wip",
    32        "displayId": "feature/wip",
    33        "latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
    34        "repository": {
    35          "slug": "webhook-test",
    36          "id": 4,
    37          "name": "webhook-test",
    38          "scmId": "git",
    39          "state": "AVAILABLE",
    40          "statusMessage": "Available",
    41          "forkable": true,
    42          "project": {
    43            "key": "~gopher",
    44            "id": 2,
    45            "name": "Foo Bar",
    46            "type": "PERSONAL",
    47            "owner": {
    48              "name": "gopher",
    49              "emailAddress": "gopher@foo.bar",
    50              "id": 3231,
    51              "displayName": "Foo Bar",
    52              "active": true,
    53              "slug": "gopher",
    54              "type": "NORMAL",
    55              "links": {
    56                "self": [
    57                  {
    58                    "href": "https://server.bitbucket.local/users/gopher"
    59                  }
    60                ]
    61              }
    62            },
    63            "links": {
    64              "self": [
    65                {
    66                  "href": "https://server.bitbucket.local/users/gopher"
    67                }
    68              ]
    69            }
    70          },
    71          "public": false,
    72          "links": {
    73            "clone": [
    74              {
    75                "href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
    76                "name": "ssh"
    77              },
    78              {
    79                "href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
    80                "name": "http"
    81              }
    82            ],
    83            "self": [
    84              {
    85                "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
    86              }
    87            ]
    88          }
    89        }
    90      },
    91      "toRef": {
    92        "id": "refs/heads/master",
    93        "displayId": "master",
    94        "latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
    95        "repository": {
    96          "slug": "webhook-test",
    97          "id": 4,
    98          "name": "webhook-test",
    99          "scmId": "git",
   100          "state": "AVAILABLE",
   101          "statusMessage": "Available",
   102          "forkable": true,
   103          "project": {
   104            "key": "~gopher",
   105            "id": 2,
   106            "name": "Foo Bar",
   107            "type": "PERSONAL",
   108            "owner": {
   109              "name": "gopher",
   110              "emailAddress": "gopher@foo.bar",
   111              "id": 3231,
   112              "displayName": "Foo Bar",
   113              "active": true,
   114              "slug": "gopher",
   115              "type": "NORMAL",
   116              "links": {
   117                "self": [
   118                  {
   119                    "href": "https://server.bitbucket.local/users/gopher"
   120                  }
   121                ]
   122              }
   123            },
   124            "links": {
   125              "self": [
   126                {
   127                  "href": "https://server.bitbucket.local/users/gopher"
   128                }
   129              ]
   130            }
   131          },
   132          "public": false,
   133          "links": {
   134            "clone": [
   135              {
   136                "href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
   137                "name": "ssh"
   138              },
   139              {
   140                "href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
   141                "name": "http"
   142              }
   143            ],
   144            "self": [
   145              {
   146                "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
   147              }
   148            ]
   149          }
   150        }
   151      },
   152      "locked": false,
   153      "author": {
   154        "user": {
   155          "name": "gopher",
   156          "emailAddress": "gopher@foo.bar",
   157          "id": 3231,
   158          "displayName": "Foo Bar",
   159          "active": true,
   160          "slug": "gopher",
   161          "type": "NORMAL",
   162          "links": {
   163            "self": [
   164              {
   165                "href": "https://server.bitbucket.local/users/gopher"
   166              }
   167            ]
   168          }
   169        },
   170        "role": "AUTHOR",
   171        "approved": false,
   172        "status": "UNAPPROVED"
   173      },
   174      "reviewers": [],
   175      "participants": [],
   176      "links": {
   177        "self": [
   178          {
   179            "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
   180          }
   181        ]
   182      }
   183    }
   184  }