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

     1  {
     2    "eventKey": "pr:merged",
     3    "date": "2019-03-01T10:37:14+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": 5,
    22      "version": 2,
    23      "title": "Update README",
    24      "description": "yada yada yada",
    25      "state": "MERGED",
    26      "open": false,
    27      "closed": true,
    28      "createdDate": 1551432675860,
    29      "updatedDate": 1551433034286,
    30      "closedDate": 1551433034286,
    31      "fromRef": {
    32        "id": "refs/heads/feature/wip",
    33        "displayId": "feature/wip",
    34        "latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
    35        "repository": {
    36          "slug": "webhook-test",
    37          "id": 4,
    38          "name": "webhook-test",
    39          "scmId": "git",
    40          "state": "AVAILABLE",
    41          "statusMessage": "Available",
    42          "forkable": true,
    43          "project": {
    44            "key": "~gopher",
    45            "id": 2,
    46            "name": "Foo Bar",
    47            "type": "PERSONAL",
    48            "owner": {
    49              "name": "gopher",
    50              "emailAddress": "gopher@foo.bar",
    51              "id": 3231,
    52              "displayName": "Foo Bar",
    53              "active": true,
    54              "slug": "gopher",
    55              "type": "NORMAL",
    56              "links": {
    57                "self": [
    58                  {
    59                    "href": "https://server.bitbucket.local/users/gopher"
    60                  }
    61                ]
    62              }
    63            },
    64            "links": {
    65              "self": [
    66                {
    67                  "href": "https://server.bitbucket.local/users/gopher"
    68                }
    69              ]
    70            }
    71          },
    72          "public": false,
    73          "links": {
    74            "clone": [
    75              {
    76                "href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
    77                "name": "ssh"
    78              },
    79              {
    80                "href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
    81                "name": "http"
    82              }
    83            ],
    84            "self": [
    85              {
    86                "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
    87              }
    88            ]
    89          }
    90        }
    91      },
    92      "toRef": {
    93        "id": "refs/heads/master",
    94        "displayId": "master",
    95        "latestCommit": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
    96        "repository": {
    97          "slug": "webhook-test",
    98          "id": 4,
    99          "name": "webhook-test",
   100          "scmId": "git",
   101          "state": "AVAILABLE",
   102          "statusMessage": "Available",
   103          "forkable": true,
   104          "project": {
   105            "key": "~gopher",
   106            "id": 2,
   107            "name": "Foo Bar",
   108            "type": "PERSONAL",
   109            "owner": {
   110              "name": "gopher",
   111              "emailAddress": "gopher@foo.bar",
   112              "id": 3231,
   113              "displayName": "Foo Bar",
   114              "active": true,
   115              "slug": "gopher",
   116              "type": "NORMAL",
   117              "links": {
   118                "self": [
   119                  {
   120                    "href": "https://server.bitbucket.local/users/gopher"
   121                  }
   122                ]
   123              }
   124            },
   125            "links": {
   126              "self": [
   127                {
   128                  "href": "https://server.bitbucket.local/users/gopher"
   129                }
   130              ]
   131            }
   132          },
   133          "public": false,
   134          "links": {
   135            "clone": [
   136              {
   137                "href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
   138                "name": "ssh"
   139              },
   140              {
   141                "href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
   142                "name": "http"
   143              }
   144            ],
   145            "self": [
   146              {
   147                "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
   148              }
   149            ]
   150          }
   151        }
   152      },
   153      "locked": false,
   154      "author": {
   155        "user": {
   156          "name": "gopher",
   157          "emailAddress": "gopher@foo.bar",
   158          "id": 3231,
   159          "displayName": "Foo Bar",
   160          "active": true,
   161          "slug": "gopher",
   162          "type": "NORMAL",
   163          "links": {
   164            "self": [
   165              {
   166                "href": "https://server.bitbucket.local/users/gopher"
   167              }
   168            ]
   169          }
   170        },
   171        "role": "AUTHOR",
   172        "approved": false,
   173        "status": "UNAPPROVED"
   174      },
   175      "reviewers": [
   176        {
   177          "user": {
   178            "name": "tux",
   179            "emailAddress": "cain.piper@foo.bar",
   180            "id": 2125,
   181            "displayName": "Cain Piper",
   182            "active": true,
   183            "slug": "tux",
   184            "type": "NORMAL",
   185            "links": {
   186              "self": [
   187                {
   188                  "href": "https://server.bitbucket.local/users/tux"
   189                }
   190              ]
   191            }
   192          },
   193          "lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
   194          "role": "REVIEWER",
   195          "approved": true,
   196          "status": "APPROVED"
   197        }
   198      ],
   199      "participants": [],
   200      "properties": {
   201        "mergeCommit": {
   202          "displayId": "cbf26be7bfc",
   203          "id": "cbf26be7bfc8394906abbd571498fb8d28888b58"
   204        }
   205      },
   206      "links": {
   207        "self": [
   208          {
   209            "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
   210          }
   211        ]
   212      }
   213    }
   214  }