我想知道如何显示提交消息,以及如何将HipChat机器人的提交用户提交到Heroku的部署挂钩。我知道这是基本设置:
heroku addons:add deployhooks:hipchat \
--auth_token=my_auth_token \
--room="My Company's Room"新的Heroku命令可能是这样的:
heroku addons:add deployhooks:hipchat \
--auth_token=my_auth_token \
--room="My Company's Room"
--user=<<user goes here>>
--message=<<commit message goes here>>长话短说,当HipChat机器人更新时,我如何向房间发送提交消息,并显示哪个用户进行了提交?我也知道我不是在“添加”插件。我应该把"add“改成什么?
发布于 2014-03-14 19:54:29
你应该有一个look at Heroku's docs on customising the message。
您可以使用以下变量来自定义消息:
app: the app name
user: email of the user deploying the app
url: the app URL (http://myapp.heroku.com or http://mydomain.com if you have custom domains enabled)
head: short identifier of the latest commit (first seven bytes of the SHA1 git object name)
head_long: full identifier of the latest commit
git_log: log of commits between this deploy and the last您可以将这些内容添加到消息中,例如{{head_log}}。
您需要删除该插件,然后使用heroku命令行客户端重新添加它,或者您可以通过Heroku的web界面编辑消息。
https://stackoverflow.com/questions/22392182
复制相似问题