Commit 43ebce85 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'highlight-slack-channel-examples' into 'master'

Slack integration: Highlight channel name examples as such

See merge request gitlab-org/gitlab!63046
parents 51040942 581a71f5
...@@ -10,7 +10,7 @@ const typeWithPlaceholder = { ...@@ -10,7 +10,7 @@ const typeWithPlaceholder = {
}; };
const placeholderForType = { const placeholderForType = {
[typeWithPlaceholder.SLACK]: __('general, development'), [typeWithPlaceholder.SLACK]: __('#general, #development'),
[typeWithPlaceholder.MATTERMOST]: __('my-channel'), [typeWithPlaceholder.MATTERMOST]: __('my-channel'),
}; };
......
...@@ -25,7 +25,7 @@ module Integrations ...@@ -25,7 +25,7 @@ module Integrations
end end
def default_channel_placeholder def default_channel_placeholder
_('general, development') _('#general, #development')
end end
def webhook_placeholder def webhook_placeholder
......
...@@ -89,6 +89,9 @@ msgstr "" ...@@ -89,6 +89,9 @@ msgstr ""
msgid "\"el\" parameter is required for createInstance()" msgid "\"el\" parameter is required for createInstance()"
msgstr "" msgstr ""
msgid "#general, #development"
msgstr ""
msgid "%d Approval" msgid "%d Approval"
msgid_plural "%d Approvals" msgid_plural "%d Approvals"
msgstr[0] "" msgstr[0] ""
...@@ -38678,9 +38681,6 @@ msgid_plural "from %d jobs" ...@@ -38678,9 +38681,6 @@ msgid_plural "from %d jobs"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "general, development"
msgstr ""
msgid "group" msgid "group"
msgstr "" msgstr ""
......
...@@ -137,11 +137,11 @@ describe('TriggerFields', () => { ...@@ -137,11 +137,11 @@ describe('TriggerFields', () => {
const expectedResults = [ const expectedResults = [
{ {
name: 'service[push_channel]', name: 'service[push_channel]',
placeholder: 'general, development', placeholder: '#general, #development',
}, },
{ {
name: 'service[merge_request_channel]', name: 'service[merge_request_channel]',
placeholder: 'general, development', placeholder: '#general, #development',
}, },
]; ];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment