docs/contrib/hangouts.md
require 'contrib/hangouts.php';
Add hook on deploy:
before('deploy', 'chat:notify');
chat_webhook – chat incoming webhook url, requiredchat_title – the title of your notification card, default {{application}}chat_subtitle – the subtitle of your card, default {{hostname}}chat_favicon – an image for the header of your card, default http://{{hostname}}/favicon.pngchat_line1 – first line of the text in your card, default: {{branch}}chat_line2 – second line of the text in your card, default: {{stage}}If you want to notify only about beginning of deployment add this line only:
before('deploy', 'chat:notify');
If you want to notify about successful end of deployment add this too:
after('deploy:success', 'chat:notify:success');
If you want to notify about failed deployment add this too:
after('deploy:failed', 'chat:notify:failure');
Title of project
return get('application', 'Project');
get('hostname')
If 'favicon' is set Google Hangouts Chat will decorate your card with an image.
'http://{{hostname}}/favicon.png'
Deploy messages
'{{branch}}'
'{{stage}}'
Notifies Google Hangouts Chat.
Notifies Google Hangouts Chat about deploy finish.
Notifies Google Hangouts Chat about deploy failure.