templates: Update .md macros to use recommended_stream_name.

Previously, we used Integration.name as the recommended stream
in our macros. Now, we have a dedicated attribute set in the
Integration class (that WebhookIntegration and GithubIntegration
inherit from) for the recommended stream name in cases where
the stream name is different than the name of the integration
itself.
This commit is contained in:
Eeshan Garg 2017-06-12 18:59:01 -02:30 committed by Tim Abbott
parent db09913f38
commit 8efb3aeee7
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
First, create the stream you'd like to use for
{{ integration_display_name }} notifications, and subscribe all
interested parties to this stream. We recommend the
name `{{ integration_name }}`.
name `{{ recommended_stream_name }}`.

View File

@ -2,4 +2,4 @@ You can also limit the branches you receive notifications for by
specifying them in a comma-separated list at the end of the URL,
like so:
`{{ external_api_uri_subdomain }}{{ integration_url }}?api_key=abcdefgh&stream={{ integration_name }}&branches=master,development`
`{{ external_api_uri_subdomain }}{{ integration_url }}?api_key=abcdefgh&stream={{ recommended_stream_name }}&branches=master,development`

View File

@ -1 +1 @@
`{{ external_api_uri_subdomain }}{{ integration_url }}?api_key=abcdefgh&stream={{ integration_name }}`
`{{ external_api_uri_subdomain }}{{ integration_url }}?api_key=abcdefgh&stream={{ recommended_stream_name }}`