【问题标题】:Close github repo issue via linked bitbucket repo commit message通过链接的 bitbucket repo 提交消息关闭 github repo 问题
【发布时间】:2015-08-20 13:59:11
【问题描述】:

我正在将源代码提交到一个免费的私有 bitbucket 存储库,并使用一个空的 github 存储库来管理问题。

我重视 github 工作流通过在提交消息中引用它来关闭问题的能力。

是否可以将 bitbucket 存储库与 github 存储库链接,以便 bitbucket 提交可以关闭 github 问题?

【问题讨论】:

    标签: git github bitbucket


    【解决方案1】:

    不是直接的,但你可以考虑设置一个:

    • webhook 用于监听 bitbucket 推送事件
    • 将虚拟提交推送到 GitHub 存储库(使用来自 Bitbucket 推送事件的相同提交消息)

    这意味着您需要一个能够侦听 webhook JSON 有效负载并对其做出反应的服务器。

    为了不泄露 bitBucket (private) repo 内容的内容,推送一个虚拟提交很重要。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      • 2022-06-12
      • 1970-01-01
      • 2011-04-02
      • 2010-12-13
      • 2015-11-17
      相关资源
      最近更新 更多