Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hehobasilico committed Feb 28, 2020
1 parent 6322b29 commit a5c9fd8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
37 changes: 26 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ if (class_exists('\Basilicom\ReleaseNotesBundle\ReleaseNotesBundle')) {
}
```
#### Example Configuration

##### Confluence Publisher
```
Basilicom\ReleaseNotesBundle\Command\ConfluenceReleaseNotesPublisherCommand:
public: true
Expand All @@ -42,19 +44,32 @@ Basilicom\ReleaseNotesBundle\Command\ConfluenceReleaseNotesPublisherCommand:
$confluencePassword: 'your-password'
$confluenceUrl: 'https://your-confluence.com'
$pageId: '123'
```
##### Confluence Publisher
You can define as many message parameters as you need.
If you want to provide a dynamic version tag you can append this as a command argument and use the reserved
`version` key to use it. e.g. `release-notes:send-to-rocket-chat v0.2.4`

```
Basilicom\ReleaseNotesBundle\Command\RocketChatReleaseNotesPublisherCommand:
public: true
tags: ['console.command']
arguments:
$rocketChatUser: ''
$rocketChatPassword: ""
$rocketChatBaseUri: ''
$message: "Release on "
#{environment} - {date}
# $parameters:
# environment: "%env(APP_ENV)%"
public: true
tags: ['console.command']
arguments:
$rocketChatUser: '%env(ROCKET_CHAT_USER)%'
$rocketChatPassword: '%env(ROCKET_CHAT_PASSWORD)%'
$rocketChatBaseUri: 'https://rocketchat.your-domain.net'
$rocketChatChannel: 'the rocket chat channel you want to post to'
$message: "
Value 1 will be inserted here -> {key1} \n
Version: {version} \n
Verantwortlich: #basilicom \n
Datum: {date}
"
$messageParameters:
key1: 'value1'
date: 'd.M.Y H:i:s'
version: ''
```

1 change: 1 addition & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $rocketChatPublisherCommand = new RocketChatReleaseNotesPublisherCommand(
'',
'',
'',
[]
);

$application->add($confluencePublisherCommand);
Expand Down

0 comments on commit a5c9fd8

Please sign in to comment.