bitbucket - 适用于所有存储库的 Bitbucket Webhook

标签 bitbucket bitbucket-api bitbucket-cloud

我们的团队在 Bitbucket 上有一个帐户,我们必须为每个 repo 配置 webhook。有没有办法一次性为所有 repo 配置 webhook,而不是单独管理每个 repo 中的 webhook?

或者,有没有一种方法可以使用 bitbucket api 来遍历所有存储库并将每个存储库的 webhook 更新为相同的设置?

最佳答案

您需要为此使用 API,但这是可能的。 https://developer.atlassian.com/bitbucket/api/2/reference/resource/teams/%7Busername%7D/hooks/%7Buid%7D拥有团队拥有的 repos 的详细信息,以及 https://developer.atlassian.com/bitbucket/api/2/reference/resource/users/%7Busername%7D/hooks/%7Buid%7D将它们用于个人用户拥有的存储库。

关于bitbucket - 适用于所有存储库的 Bitbucket Webhook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56300557/

相关文章:

git - Bitbucket自动从远程存储库 pull 最新代码

git - 使用 http 身份验证下载私有(private) BitBucket 存储库 zip 文件

git - Eclipse Egit 无法登录 Bitbucket

api - 使用 BitBucket API,列出哪些分支拥有 master 中的所有内容,哪些分支没有

git - Bitbucket Cloud git fetch 和 git pull 没有获取分支的最近提交

Git "git config --global user.name"为什么会有这个选项?

github - 是否可以从浏览器编辑文件并提交 github/bitbucket

git - 快速查找 Jira 问题的所有 Bitbucket Pull 请求

Bitbucket Pipelines apt-get 停止工作

git - 在 git clone 命令中使用密码克隆 BitBucket 存储库会导致问题