Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 其他HipChat Heroku部署挂钩选项_Git_Heroku_Hook - Fatal编程技术网

Git 其他HipChat Heroku部署挂钩选项

Git 其他HipChat Heroku部署挂钩选项,git,heroku,hook,Git,Heroku,Hook,我想知道如何显示提交消息并将HipChat bot的用户提交到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 \

我想知道如何显示提交消息并将HipChat bot的用户提交到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>>
heroku插件:添加部署钩子:hipchat\ --认证令牌=我的认证令牌\ --room=“我公司的房间” --使用者= --信息= 长话短说,当HipChat机器人更新时,我如何向聊天室发送提交消息,并显示是哪个用户提交的?我也知道我不是在“添加”附加组件。我应该将“添加”更改为什么?

您应该有一个

您可以使用以下变量自定义消息:

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\u log}


您需要删除插件并使用heroku命令行客户端再次添加它,或者您可以通过heroku的web界面编辑消息。

也许我不清楚,但我不确定如何使插件的“消息”部分动态,并让它显示相关的提交消息。我想我理解,但我已经更新了我的答案。我想你需要
head\u long