【问题标题】:How to add git hook for sending commit messages into pivotal tracker story as comments?如何添加 git hook 以将提交消息作为评论发送到关键跟踪器故事中?
【发布时间】:2014-03-23 16:19:13
【问题描述】:

我正在使用 mac os、git(没有 github)、gitolite 作为 git 服务器和关键跟踪器。

我想添加 git hook 来通知推送的提交:[#432324] some commit 将作为评论添加到 PT 故事。当提交消息是“固定”文本时,也许我将能够结束故事。

【问题讨论】:

    标签: git githooks gitolite pivotaltracker


    【解决方案1】:

    您需要从 post-updatepost-receive 挂钩创建 JSON 请求并将其发布到 PT API。这不是太复杂 - here’s an example you can base your work on

    与一般礼仪相反,我没有粘贴引用链接的相关部分,因为此处访问 REST API 的方式没有什么独特之处,并且提供的数据将特定于提交者。

    【讨论】:

      【解决方案2】:

      git_tracker 完全符合您的要求。见this answer

      【讨论】:

        猜你喜欢
        • 2019-01-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-12-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多