github.com/go-playground/webhooks/v6@v6.3.0/testdata/bitbucket-server/pr-declined.json (about) 1 { 2 "eventKey": "pr:declined", 3 "date": "2019-03-01T10:12:35+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": 23, 23 "title": "Update README", 24 "description": "yada yada yada", 25 "state": "DECLINED", 26 "open": false, 27 "closed": true, 28 "createdDate": 1550436762919, 29 "updatedDate": 1551431555605, 30 "closedDate": 1551431555605, 31 "fromRef": { 32 "id": "refs/heads/feature/wip", 33 "displayId": "feature/wip", 34 "latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174", 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": "038e7b67735e54f6de8f1c5d533c6751df524f6c", 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 "participants": [], 177 "links": { 178 "self": [ 179 { 180 "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2" 181 } 182 ] 183 } 184 } 185 }