github.com/go-playground/webhooks/v6@v6.3.0/testdata/bitbucket/pull-request-comment-created.json (about)

     1  {
     2    "actor":{
     3      "nickname":"emmap1",
     4      "account_id":"udfy9suggmzpswxc7n200y3c",
     5      "display_name":"Emma",
     6      "uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
     7      "links":{
     8        "self":{
     9          "href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
    10        },
    11        "html":{
    12          "href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
    13        },
    14        "avatar":{
    15          "href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
    16        }
    17      }
    18    },
    19    "repository":{
    20      "links":{
    21        "self":{
    22          "href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
    23        },
    24        "html":{
    25          "href":"https://api.bitbucket.org/bitbucket/bitbucket"
    26        },
    27        "avatar":{
    28          "href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
    29        }
    30      },
    31      "uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
    32      "full_name":"team_name/repo_name",
    33      "name":"repo_name",
    34      "scm":"git",
    35      "is_private":true
    36    },
    37    "pullrequest":{
    38      "id":1,
    39      "title":"Title of pull request",
    40      "description":"Description of pull request",
    41      "state":"OPEN|MERGED|DECLINED",
    42      "author":{
    43        "nickname":"emmap1",
    44        "account_id":"udfy9suggmzpswxc7n200y3c",
    45        "display_name":"Emma",
    46        "uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
    47        "links":{
    48          "self":{
    49            "href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
    50          },
    51          "html":{
    52            "href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
    53          },
    54          "avatar":{
    55            "href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
    56          }
    57        }
    58      },
    59      "source":{
    60        "branch":{
    61          "name":"branch2"
    62        },
    63        "commit":{
    64          "hash":"d3022fc0ca3d"
    65        },
    66        "repository":{
    67          "links":{
    68            "self":{
    69              "href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
    70            },
    71            "html":{
    72              "href":"https://api.bitbucket.org/bitbucket/bitbucket"
    73            },
    74            "avatar":{
    75              "href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
    76            }
    77          },
    78          "uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
    79          "full_name":"team_name/repo_name",
    80          "name":"repo_name",
    81          "scm":"git",
    82          "is_private":true
    83        }
    84      },
    85      "destination":{
    86        "branch":{
    87          "name":"master"
    88        },
    89        "commit":{
    90          "hash":"ce5965ddd289"
    91        },
    92        "repository":{
    93          "links":{
    94            "self":{
    95              "href":"https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket"
    96            },
    97            "html":{
    98              "href":"https://api.bitbucket.org/bitbucket/bitbucket"
    99            },
   100            "avatar":{
   101              "href":"https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png"
   102            }
   103          },
   104          "uuid":"{673a6070-3421-46c9-9d48-90745f7bfe8e}",
   105          "full_name":"team_name/repo_name",
   106          "name":"repo_name",
   107          "scm":"git",
   108          "is_private":true
   109        }
   110      },
   111      "merge_commit":{
   112        "hash":"764413d85e29"
   113      },
   114      "participants":[
   115        {
   116          "nickname":"emmap1",
   117          "account_id":"udfy9suggmzpswxc7n200y3c",
   118          "display_name":"Emma",
   119          "uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
   120          "links":{
   121            "self":{
   122              "href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   123            },
   124            "html":{
   125              "href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   126            },
   127            "avatar":{
   128              "href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
   129            }
   130          }
   131        }
   132      ],
   133      "reviewers":[
   134        {
   135          "nickname":"emmap1",
   136          "account_id":"udfy9suggmzpswxc7n200y3c",
   137          "display_name":"Emma",
   138          "uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
   139          "links":{
   140            "self":{
   141              "href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   142            },
   143            "html":{
   144              "href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   145            },
   146            "avatar":{
   147              "href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
   148            }
   149          }
   150        }
   151      ],
   152      "close_source_branch":true,
   153      "closed_by":{
   154        "nickname":"emmap1",
   155        "account_id":"udfy9suggmzpswxc7n200y3c",
   156        "display_name":"Emma",
   157        "uuid":"{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}",
   158        "links":{
   159          "self":{
   160            "href":"https://api.bitbucket.org/api/2.0/users/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   161          },
   162          "html":{
   163            "href":"https://api.bitbucket.org/%7Ba54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3%7D"
   164          },
   165          "avatar":{
   166            "href":"https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png"
   167          }
   168        }
   169      },
   170      "reason":"reason for declining the PR (if applicable)",
   171      "created_on":"2015-04-06T15:23:38.179678+00:00",
   172      "updated_on":"2015-04-06T15:23:38.205705+00:00",
   173      "links":{
   174        "self":{
   175          "href":"https://api.bitbucket.org/api/2.0/pullrequests/pullrequest_id"
   176        },
   177        "html":{
   178          "href":"https://api.bitbucket.org/pullrequest_id"
   179        }
   180      }
   181    },
   182    "comment":{
   183      "id":17,
   184      "parent":{
   185        "id":16
   186      },
   187      "content":{
   188        "raw":"Comment text",
   189        "html":"<p>Comment text</p>",
   190        "markup":"markdown"
   191      },
   192      "inline":{
   193        "path":"path/to/file",
   194        "from":null,
   195        "to":10
   196      },
   197      "created_on":"2015-04-06T16:52:29.982346+00:00",
   198      "updated_on":"2015-04-06T16:52:29.983730+00:00",
   199      "links":{
   200        "self":{
   201          "href":"https://api.bitbucket.org/api/2.0/comments/comment_id"
   202        },
   203        "html":{
   204          "href":"https://api.bitbucket.org/comment_id"
   205        }
   206      }
   207    }
   208  }