github.com/go-playground/webhooks/v6@v6.3.0/testdata/bitbucket-server/repo-refs-changed.json (about) 1 { 2 "eventKey": "repo:refs_changed", 3 "date": "2019-03-01T10:37:14+0100", 4 "actor": { 5 "name": "gopher", 6 "emailAddress": "foo@bar.com", 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 "repository": { 21 "slug": "webhook-test", 22 "id": 4, 23 "name": "webhook-test", 24 "scmId": "git", 25 "state": "AVAILABLE", 26 "statusMessage": "Available", 27 "forkable": true, 28 "project": { 29 "key": "~gopher", 30 "id": 2, 31 "name": "Foo Bar", 32 "type": "PERSONAL", 33 "owner": { 34 "name": "gopher", 35 "emailAddress": "foo@bar.com", 36 "id": 3231, 37 "displayName": "Foo Bar", 38 "active": true, 39 "slug": "gopher", 40 "type": "NORMAL", 41 "links": { 42 "self": [ 43 { 44 "href": "https://server.bitbucket.local/users/gopher" 45 } 46 ] 47 } 48 }, 49 "links": { 50 "self": [ 51 { 52 "href": "https://server.bitbucket.local/users/gopher" 53 } 54 ] 55 } 56 }, 57 "public": false, 58 "links": { 59 "clone": [ 60 { 61 "href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git", 62 "name": "ssh" 63 }, 64 { 65 "href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git", 66 "name": "http" 67 } 68 ], 69 "self": [ 70 { 71 "href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse" 72 } 73 ] 74 } 75 }, 76 "changes": [ 77 { 78 "ref": { 79 "id": "refs/heads/feature/wip", 80 "displayId": "feature/wip", 81 "type": "BRANCH" 82 }, 83 "refId": "refs/heads/feature/wip", 84 "fromHash": "32a0b8a740c2963c6f56bd8baf3dc05683d299e0", 85 "toHash": "0000000000000000000000000000000000000000", 86 "type": "DELETE" 87 } 88 ] 89 }