Files
webhooks/testdata/bitbucket/repo-push.json
T
2019-07-02 10:07:43 +03:00

210 lines
7.8 KiB
JSON

{
"actor":{
"nickname":"emmap1",
"account_id":"udfy9suggmzpswxc7n200y3c",
"display_name":"Emma",
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
"links":{
"self":{
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"html":{
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"avatar":{
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
}
}
},
"repository":{
"links":{
"self":{
"href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
},
"html":{
"href":"https://api.bitbucket.org/bitbucket/bitbucket"
},
"avatar":{
"href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
}
},
"uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
"full_name":"team_name/repo_name",
"name":"repo_name",
"scm":"git",
"is_private":true
},
"push":{
"changes":[
{
"new":{
"type":"branch",
"name":"name-of-branch",
"target":{
"type":"commit",
"hash":"709d658dc5b6d6afcd46049c2f332ee3f515a67d",
"author":{
"nickname":"emmap1",
"account_id":"udfy9suggmzpswxc7n200y3c",
"display_name":"Emma",
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
"links":{
"self":{
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"html":{
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"avatar":{
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
}
}
},
"message":"new commit message\n",
"date":"2015-06-09T03:34:49+00:00",
"parents":[
{
"type":"commit",
"hash":"1e65c05c1d5171631d92438a13901ca7dae9618c",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/8cbbd65829c7ad834a97841e0defc965718036a0"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/commits/8cbbd65829c7ad834a97841e0defc965718036a0"
}
}
}
],
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/c4b2b7914156a878aa7c9da452a09fb50c2091f2"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/commits/c4b2b7914156a878aa7c9da452a09fb50c2091f2"
}
}
},
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/refs/branches/master"
},
"commits":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits/master"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/branch/master"
}
}
},
"old":{
"type":"branch",
"name":"name-of-branch",
"target":{
"type":"commit",
"hash":"1e65c05c1d5171631d92438a13901ca7dae9618c",
"author":{
"nickname":"emmap1",
"account_id":"udfy9suggmzpswxc7n200y3c",
"display_name":"Emma",
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
"links":{
"self":{
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"html":{
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"avatar":{
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
}
}
},
"message":"old commit message\n",
"date":"2015-06-08T21:34:56+00:00",
"parents":[
{
"type":"commit",
"hash":"e0d0c2041e09746be5ce4b55067d5a8e3098c843",
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/9c4a3452da3bc4f37af5a6bb9c784246f44406f7"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/commits/9c4a3452da3bc4f37af5a6bb9c784246f44406f7"
}
}
}
],
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commit/b99ea6dad8f416e57c5ca78c1ccef590600d841b"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/commits/b99ea6dad8f416e57c5ca78c1ccef590600d841b"
}
}
},
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/refs/branches/master"
},
"commits":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits/master"
},
"html":{
"href":"https://bitbucket.org/user_name/repo_name/branch/master"
}
}
},
"links":{
"html":{
"href":"https://bitbucket.org/user_name/repo_name/branches/compare/c4b2b7914156a878aa7c9da452a09fb50c2091f2..b99ea6dad8f416e57c5ca78c1ccef590600d841b"
},
"diff":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/diff/c4b2b7914156a878aa7c9da452a09fb50c2091f2..b99ea6dad8f416e57c5ca78c1ccef590600d841b"
},
"commits":{
"href":"https://api.bitbucket.org/2.0/repositories/user_name/repo_name/commits?include=c4b2b7914156a878aa7c9da452a09fb50c2091f2&exclude=b99ea6dad8f416e57c5ca78c1ccef590600d841b"
}
},
"created":false,
"forced":false,
"closed":false,
"commits":[
{
"hash":"03f4a7270240708834de475bcf21532d6134777e",
"type":"commit",
"message":"commit message\n",
"author":{
"nickname":"emmap1",
"account_id":"udfy9suggmzpswxc7n200y3c",
"display_name":"Emma",
"uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
"links":{
"self":{
"href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"html":{
"href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
},
"avatar":{
"href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
}
}
},
"links":{
"self":{
"href":"https://api.bitbucket.org/2.0/repositories/user/repo/commit/03f4a7270240708834de475bcf21532d6134777e"
},
"html":{
"href":"https://bitbucket.org/user/repo/commits/03f4a7270240708834de475bcf21532d6134777e"
}
}
}
],
"truncated":false
}
]
}
}