You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Bitbucket REST API筛选本人发起的Pull Requests

Bitbucket Server 5.16.0 REST API筛选自己发起的Pull Request

你当前使用的PR列表API支持通过发起者筛选,只需在请求参数里添加author={你的用户名}即可,修改后的请求URL如下:

{link}/rest/api/1.0/projects/{my project}/repos/{my repo}/pull-requests?state=all&limit=1&size=1&author={你的用户名}

如果发起请求的认证用户就是你自己,还可以用author=current替代具体用户名,不用硬编码用户名更灵活。

这个author参数是该API端点的可选查询参数,可能你之前查文档时没留意到。

内容的提问来源于stack exchange,提问作者user24147763

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 05:48:13