deployer/docs/contrib/hipchat.md
Anton Medvedev 3216576680 Add docs
2021-09-26 15:25:58 +02:00

90 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/hipchat.php -->
<!-- Then run bin/docgen -->
# hipchat
[Source](/contrib/hipchat.php)
## Installing
Add to your _deploy.php_
```php
require 'contrib/hipchat.php';
```
## Configuration
- `hipchat_token` Hipchat V1 auth token
- `hipchat_room_id` Room ID or name
- `hipchat_message` Deploy message, default is `_{{user}}_ deploying `{{branch}}` to *{{target}}*`
- `hipchat_from` Default to target
- `hipchat_color` Message color, default is **green**
- `hipchat_url` The URL to the message endpoint, default is https://api.hipchat.com/v1/rooms/message
## Usage
Since you should only notify Hipchat room of a successful deployment, the `hipchat:notify` task should be executed right at the end.
```php
after('deploy', 'hipchat:notify');
```
## Configuration
### hipchat_color
[Source](https://github.com/deployphp/deployer/blob/master/contrib/hipchat.php#L33)
```php title="Default value"
'green'
```
### hipchat_from
[Source](https://github.com/deployphp/deployer/blob/master/contrib/hipchat.php#L34)
```php title="Default value"
'{{target}}'
```
### hipchat_message
[Source](https://github.com/deployphp/deployer/blob/master/contrib/hipchat.php#L35)
```php title="Default value"
'_{{user}}_ deploying `{{branch}}` to *{{target}}*'
```
### hipchat_url
[Source](https://github.com/deployphp/deployer/blob/master/contrib/hipchat.php#L36)
```php title="Default value"
'https://api.hipchat.com/v1/rooms/message'
```
## Tasks
### hipchat:notify
[Source](https://github.com/deployphp/deployer/blob/master/contrib/hipchat.php#L39)
Notifying Hipchat channel of deployment.