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

     1  {
     2    "eventKey": "pr:reviewer:approved",
     3    "date": "2019-03-01T10:35:38+0100",
     4    "actor": {
     5      "name": "tux",
     6      "emailAddress": "cain.piper@foo.bar",
     7      "id": 2125,
     8      "displayName": "Cain Piper",
     9      "active": true,
    10      "slug": "tux",
    11      "type": "NORMAL",
    12      "links": {
    13        "self": [
    14          {
    15            "href": "https://server.bitbucket.local/users/tux"
    16          }
    17        ]
    18      }
    19    },
    20    "pullRequest": {
    21      "id": 5,
    22      "version": 0,
    23      "title": "Update README",
    24      "description": "yada yada yada",
    25      "state": "OPEN",
    26      "open": true,
    27      "closed": false,
    28      "createdDate": 1551432675860,
    29      "updatedDate": 1551432675860,
    30      "fromRef": {
    31        "id": "refs/heads/feature/wip",
    32        "displayId": "feature/wip",
    33        "latestCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
    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": "cde6c45a4210afe81638aa1f3aa960d633c66a90",
    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        {
   176          "user": {
   177            "name": "tux",
   178            "emailAddress": "cain.piper@foo.bar",
   179            "id": 2125,
   180            "displayName": "Cain Piper",
   181            "active": true,
   182            "slug": "tux",
   183            "type": "NORMAL",
   184            "links": {
   185              "self": [
   186                {
   187                  "href": "https://server.bitbucket.local/users/tux"
   188                }
   189              ]
   190            }
   191          },
   192          "lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
   193          "role": "REVIEWER",
   194          "approved": true,
   195          "status": "APPROVED"
   196        }
   197      ],
   198      "participants": [],
   199      "links": {
   200        "self": [
   201          {
   202            "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/5"
   203          }
   204        ]
   205      }
   206    },
   207    "participant": {
   208      "user": {
   209        "name": "tux",
   210        "emailAddress": "cain.piper@foo.bar",
   211        "id": 2125,
   212        "displayName": "Cain Piper",
   213        "active": true,
   214        "slug": "tux",
   215        "type": "NORMAL",
   216        "links": {
   217          "self": [
   218            {
   219              "href": "https://server.bitbucket.local/users/tux"
   220            }
   221          ]
   222        }
   223      },
   224      "lastReviewedCommit": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0",
   225      "role": "REVIEWER",
   226      "approved": true,
   227      "status": "APPROVED"
   228    },
   229    "previousStatus": "NEEDS_WORK"
   230  }