【问题标题】:(Heroku/GIT) Comments added to commit command not appearing in activity(Heroku/GIT) 添加到提交命令的注释未出现在活动中
【发布时间】:2013-01-18 10:05:52
【问题描述】:

我和一个朋友正在为 facebook 创建一个应用程序。因此,为了保持井井有条,当我们做某事并将其推送到 heroku 时,我们会在提交命令中添加注释,例如:

git commit -am "changed logo"

我们遇到的问题是,在 heroku 网站的活动日志中,我们收到如下消息:

v34 ************@gmail.com: Deploy ce43e3a less than a minute ago

我们曾经让 cmets 出现而不是“部署怪异代码”...我们可以做些什么来让这种情况再次发生?

【问题讨论】:

    标签: facebook git heroku commit


    【解决方案1】:

    一种方法是customizing the message of one of the Heroku Deploy hooks
    我记得两年多前在“Git email hook to include commit message and changed files”中这样做过。

    在定义任何部署挂钩属性的消息、标题或主题时,可以使用变量。

    git_log
    

    本次部署与上次部署之间的提交日志

    【讨论】:

      猜你喜欢
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 2019-04-11
      • 2012-03-10
      • 2013-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多