Git 电子邮件挂钩包含提交消息和更改的文件
我在heroku 中为git 设置了电子邮件挂钩。但是,我得到的只是推送某些内容的消息 - 我需要提交消息和修改后的文件。
#what i now get in the email:
[email protected] to me, hermantamas
[email protected] deployed app
#what i need:
[email protected] to me, hermantamas
[email protected] deployed app:
"home page is now working"
Changed:
- index.html
- javascript.js
I set up the email hook for git in heroku. However, all i get is the message that something is pushed - i need both the commit message and the modified files.
#what i now get in the email:
[email protected] to me, hermantamas
[email protected] deployed app
#what i need:
[email protected] to me, hermantamas
[email protected] deployed app:
"home page is now working"
Changed:
- index.html
- javascript.js
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着直接修改 Heorku 电子邮件挂钩 来添加一些 那些 git 日志选项 (
git log - -name-status
、git log --name-only
、git log --stat
或git Whatchanged
)但是既然你可能无法直接更改钩子脚本,您仍然可以添加一个 Heroku 变量< /a> 定义邮件钩子时。
That would mean modifying the Heorku email hook directly to add some of those git log options (
git log --name-status
,git log --name-only
,git log --stat
orgit whatchanged
)But since you may not have the possibility to change directly the hook script, you still can add one Heroku variable when defining said mail hook.