使用 Bitbucket API 进行各种操作相关接口示例
一、示例1-Pull Request相关接口
以下是每个操作的请求和响应示例,并添加了字段的具体中文介绍。
1. 创建 Pull Request
请求 URL
POST https://api.bitbucket.org/2.0/repositories/{username}/{repo_slug}/pullrequests
请求 Body 示例
{
"title": "Pull request title", // Pull Request 的标题
"source"