Adds support for Bitbucket Server (#63)
This commit is contained in:
committed by
Dean Karn
parent
a1051fd871
commit
acf48b9638
+213
@@ -0,0 +1,213 @@
|
||||
{
|
||||
"eventKey": "pr:comment:edited",
|
||||
"date": "2019-03-01T10:06:11+0100",
|
||||
"actor": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pullRequest": {
|
||||
"id": 2,
|
||||
"version": 20,
|
||||
"title": "Update README",
|
||||
"description": "yada yada yada",
|
||||
"state": "OPEN",
|
||||
"open": true,
|
||||
"closed": false,
|
||||
"createdDate": 1550436762919,
|
||||
"updatedDate": 1551366080055,
|
||||
"fromRef": {
|
||||
"id": "refs/heads/feature/wip",
|
||||
"displayId": "feature/wip",
|
||||
"latestCommit": "50a8ee1fae3abf75738a85f9039b4b2de4947174",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"toRef": {
|
||||
"id": "refs/heads/master",
|
||||
"displayId": "master",
|
||||
"latestCommit": "038e7b67735e54f6de8f1c5d533c6751df524f6c",
|
||||
"repository": {
|
||||
"slug": "webhook-test",
|
||||
"id": 4,
|
||||
"name": "webhook-test",
|
||||
"scmId": "git",
|
||||
"state": "AVAILABLE",
|
||||
"statusMessage": "Available",
|
||||
"forkable": true,
|
||||
"project": {
|
||||
"key": "~gopher",
|
||||
"id": 2,
|
||||
"name": "Foo Bar",
|
||||
"type": "PERSONAL",
|
||||
"owner": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"public": false,
|
||||
"links": {
|
||||
"clone": [
|
||||
{
|
||||
"href": "ssh://git@server.bitbucket.local:7999/~gopher/webhook-test.git",
|
||||
"name": "ssh"
|
||||
},
|
||||
{
|
||||
"href": "https://server.bitbucket.local/scm/~gopher/webhook-test.git",
|
||||
"name": "http"
|
||||
}
|
||||
],
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/browse"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"locked": false,
|
||||
"author": {
|
||||
"user": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": "AUTHOR",
|
||||
"approved": false,
|
||||
"status": "UNAPPROVED"
|
||||
},
|
||||
"reviewers": [],
|
||||
"participants": [],
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher/repos/webhook-test/pull-requests/2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"properties": {
|
||||
"repositoryId": 4
|
||||
},
|
||||
"id": 165,
|
||||
"version": 3,
|
||||
"text": "yada edit comment",
|
||||
"author": {
|
||||
"name": "gopher",
|
||||
"emailAddress": "gopher@foo.bar",
|
||||
"id": 3231,
|
||||
"displayName": "Foo Bar",
|
||||
"active": true,
|
||||
"slug": "gopher",
|
||||
"type": "NORMAL",
|
||||
"links": {
|
||||
"self": [
|
||||
{
|
||||
"href": "https://server.bitbucket.local/users/gopher"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdDate": 1551430363669,
|
||||
"updatedDate": 1551431171528,
|
||||
"comments": [],
|
||||
"tasks": []
|
||||
},
|
||||
"previousComment": "yada yada yada"
|
||||
}
|
||||
Reference in New Issue
Block a user