首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >其他HipChat Heroku部署挂钩选项

其他HipChat Heroku部署挂钩选项
EN

Stack Overflow用户
提问于 2014-03-14 06:18:10
回答 1查看 390关注 0票数 2

我想知道如何显示提交消息,以及如何将HipChat机器人的提交用户提交到Heroku的部署挂钩。我知道这是基本设置:

代码语言:javascript
复制
heroku addons:add deployhooks:hipchat \
    --auth_token=my_auth_token \
    --room="My Company's Room"

新的Heroku命令可能是这样的:

代码语言:javascript
复制
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“改成什么?

EN

回答 1

Stack Overflow用户

发布于 2014-03-14 19:54:29

你应该有一个look at Heroku's docs on customising the message

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

代码语言:javascript
复制
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界面编辑消息。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22392182

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档