gpt4 book ai didi

jenkins - Bitbucket 拉取请求引用规范

转载 作者:行者123 更新时间:2023-12-02 17:54:52 24 4
gpt4 key购买 nike

我搜索了 Atlassian 文档并找到了这个ref/pull-requests/$PR_NO/from,当我尝试获取它时,我遇到了这个错误无法找到远程引用refs/pull-requests/1/from。有没有办法启用这个引用?或者 webhook 是唯一的选择吗?我正在尝试使用 Bitbucket 进行 CI 设置。

(我们采用 10 位用户付费计划)

最佳答案

现在这是可能的。您只需将这样的行添加到您的 <repo_root>/.git/config 中即可:

[remote "origin"]
url = ...
fetch = ...
fetch = +refs/pull-requests/*:refs/pull-requests/*

当您获取时,您会看到出现一组全新的引用:

$ git fetch origin
remote: Counting objects: 252, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 82 (delta 20), reused 0 (delta 0)
Unpacking objects: 100% (82/82), done.
From ...
* [new ref] refs/pull-requests/300/from -> refs/pull-requests/300/from
* [new ref] refs/pull-requests/300/merge -> refs/pull-requests/300/merge
* [new ref] refs/pull-requests/302/from -> refs/pull-requests/302/from
* [new ref] refs/pull-requests/323/from -> refs/pull-requests/323/from
* [new ref] refs/pull-requests/323/merge -> refs/pull-requests/323/merge
* [new ref] refs/pull-requests/344/from -> refs/pull-requests/344/from
* [new ref] refs/pull-requests/344/merge -> refs/pull-requests/344/merge
* [new ref] refs/pull-requests/350/from -> refs/pull-requests/350/from
* [new ref] refs/pull-requests/350/merge -> refs/pull-requests/350/merge
* [new ref] refs/pull-requests/355/from -> refs/pull-requests/355/from
* [new ref] refs/pull-requests/355/merge -> refs/pull-requests/355/merge

*/from为您提供公关部门负责人; */merge为您提供将 PR 与目标分支合并的结果。

更多详情,请参阅 Pull request proficiency: Fetching abilities unlocked!

关于jenkins - Bitbucket 拉取请求引用规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35216431/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com