Stillkill

Bitbucket Pull Request Webhook Payload

Oct 2nd, 2020
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.39 KB | None | 0 0
  1. {
  2.     "actor": {
  3.         "display_name": "Emma",
  4.         "links": {
  5.             "avatar": {
  6.                 "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
  7.             },
  8.             "html": {
  9.                 "href": "https://api.bitbucket.org/emmap1"
  10.             },
  11.             "self": {
  12.                 "href": "https://api.bitbucket.org/api/2.0/users/emmap1"
  13.             }
  14.         },
  15.         "type": "user",
  16.         "username": "emmap1",
  17.         "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}"
  18.     },
  19.     "pullrequest": {
  20.         "author": {
  21.             "display_name": "Emma",
  22.             "links": {
  23.                 "avatar": {
  24.                     "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
  25.                 },
  26.                 "html": {
  27.                     "href": "https://api.bitbucket.org/emmap1"
  28.                 },
  29.                 "self": {
  30.                     "href": "https://api.bitbucket.org/api/2.0/users/emmap1"
  31.                 }
  32.             },
  33.             "type": "user",
  34.             "username": "emmap1",
  35.             "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}"
  36.         },
  37.         "close_source_branch": true,
  38.         "closed_by": {
  39.             "display_name": "Emma",
  40.             "links": {
  41.                 "avatar": {
  42.                     "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
  43.                 },
  44.                 "html": {
  45.                     "href": "https://api.bitbucket.org/emmap1"
  46.                 },
  47.                 "self": {
  48.                     "href": "https://api.bitbucket.org/api/2.0/users/emmap1"
  49.                 }
  50.             },
  51.             "type": "user",
  52.             "username": "emmap1",
  53.             "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}"
  54.         },
  55.         "created_on": "2015-04-06T15:23:38.179678+00:00",
  56.         "description": "Description of pull request",
  57.         "destination": {
  58.             "branch": {
  59.                 "name": "master"
  60.             },
  61.             "commit": {
  62.                 "hash": "ce5965ddd289"
  63.             },
  64.             "repository": {
  65.                 "full_name": "workspace_slug/repoitory_slug",
  66.                 "is_private": true,
  67.                 "links": {
  68.                     "avatar": {
  69.                         "href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
  70.                     },
  71.                     "html": {
  72.                         "href": "https://api.bitbucket.org/bitbucket/bitbucket"
  73.                     },
  74.                     "self": {
  75.                         "href": "https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
  76.                     }
  77.                 },
  78.                 "name": "repo_name",
  79.                 "project": {
  80.                     "key": "proj",
  81.                     "links": {
  82.                         "avatar": {
  83.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  84.                         },
  85.                         "html": {
  86.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  87.                         }
  88.                     },
  89.                     "project": "Untitled project",
  90.                     "type": "project",
  91.                     "uuid": "{3b7898dc-6891-4225-ae60-24613bb83080}"
  92.                 },
  93.                 "scm": "git",
  94.                 "type": "repository",
  95.                 "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}",
  96.                 "website": "https://mywebsite.com/",
  97.                 "workspace": {
  98.                     "links": {
  99.                         "avatar": {
  100.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  101.                         },
  102.                         "html": {
  103.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  104.                         }
  105.                     },
  106.                     "name": "workspace name",
  107.                     "slug": "https://slug.com",
  108.                     "type": "workspace",
  109.                     "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}"
  110.                 }
  111.             }
  112.         },
  113.         "id": 1,
  114.         "links": {
  115.             "html": {
  116.                 "href": "https://api.bitbucket.org/pullrequest_id"
  117.             },
  118.             "self": {
  119.                 "href": "https://api.bitbucket.org/api/2.0/pullrequests/pullrequest_id"
  120.             }
  121.         },
  122.         "merge_commit": {
  123.             "hash": "764413d85e29"
  124.         },
  125.         "participants": {
  126.             "display_name": "Emma",
  127.             "links": {
  128.                 "avatar": {
  129.                     "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
  130.                 },
  131.                 "html": {
  132.                     "href": "https://api.bitbucket.org/emmap1"
  133.                 },
  134.                 "self": {
  135.                     "href": "https://api.bitbucket.org/api/2.0/users/emmap1"
  136.                 }
  137.             },
  138.             "type": "user",
  139.             "username": "emmap1",
  140.             "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}"
  141.         },
  142.         "reason": "reason for declining the PR (if applicable)",
  143.         "reviewers": {
  144.             "display_name": "Emma",
  145.             "links": {
  146.                 "avatar": {
  147.                     "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
  148.                 },
  149.                 "html": {
  150.                     "href": "https://api.bitbucket.org/emmap1"
  151.                 },
  152.                 "self": {
  153.                     "href": "https://api.bitbucket.org/api/2.0/users/emmap1"
  154.                 }
  155.             },
  156.             "type": "user",
  157.             "username": "emmap1",
  158.             "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}"
  159.         },
  160.         "source": {
  161.             "branch": {
  162.                 "name": "branch2"
  163.             },
  164.             "commit": {
  165.                 "hash": "d3022fc0ca3d"
  166.             },
  167.             "repository": {
  168.                 "full_name": "workspace_slug/repoitory_slug",
  169.                 "is_private": true,
  170.                 "links": {
  171.                     "avatar": {
  172.                         "href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
  173.                     },
  174.                     "html": {
  175.                         "href": "https://api.bitbucket.org/bitbucket/bitbucket"
  176.                     },
  177.                     "self": {
  178.                         "href": "https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
  179.                     }
  180.                 },
  181.                 "name": "repo_name",
  182.                 "project": {
  183.                     "key": "proj",
  184.                     "links": {
  185.                         "avatar": {
  186.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  187.                         },
  188.                         "html": {
  189.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  190.                         }
  191.                     },
  192.                     "project": "Untitled project",
  193.                     "type": "project",
  194.                     "uuid": "{3b7898dc-6891-4225-ae60-24613bb83080}"
  195.                 },
  196.                 "scm": "git",
  197.                 "type": "repository",
  198.                 "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}",
  199.                 "website": "https://mywebsite.com/",
  200.                 "workspace": {
  201.                     "links": {
  202.                         "avatar": {
  203.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  204.                         },
  205.                         "html": {
  206.                             "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  207.                         }
  208.                     },
  209.                     "name": "workspace name",
  210.                     "slug": "https://slug.com",
  211.                     "type": "workspace",
  212.                     "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}"
  213.                 }
  214.             }
  215.         },
  216.         "state": "OPEN|MERGED|DECLINED",
  217.         "title": "Title of pull request",
  218.         "updated_on": "2015-04-06T15:23:38.205705+00:00"
  219.     },
  220.     "repository": {
  221.         "full_name": "workspace_slug/repoitory_slug",
  222.         "is_private": true,
  223.         "links": {
  224.             "avatar": {
  225.                 "href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
  226.             },
  227.             "html": {
  228.                 "href": "https://api.bitbucket.org/bitbucket/bitbucket"
  229.             },
  230.             "self": {
  231.                 "href": "https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
  232.             }
  233.         },
  234.         "name": "repo_name",
  235.         "project": {
  236.             "key": "proj",
  237.             "links": {
  238.                 "avatar": {
  239.                     "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  240.                 },
  241.                 "html": {
  242.                     "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  243.                 }
  244.             },
  245.             "project": "Untitled project",
  246.             "type": "project",
  247.             "uuid": "{3b7898dc-6891-4225-ae60-24613bb83080}"
  248.         },
  249.         "scm": "git",
  250.         "type": "repository",
  251.         "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}",
  252.         "website": "https://mywebsite.com/",
  253.         "workspace": {
  254.             "links": {
  255.                 "avatar": {
  256.                     "href": "https://bitbucket.org/account/user/teamawesome/projects/proj/avatar/32"
  257.                 },
  258.                 "html": {
  259.                     "href": "https://bitbucket.org/account/user/teamawesome/projects/proj"
  260.                 }
  261.             },
  262.             "name": "workspace name",
  263.             "slug": "https://slug.com",
  264.             "type": "workspace",
  265.             "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}"
  266.         }
  267.     }
  268. }
  269.  
Add Comment
Please, Sign In to add comment