Commit c63253ad authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'avoid-double-dash-doc-link' into 'master'

Update UI text and link for variable warning

See merge request gitlab-org/gitlab!69830
parents c6e9a0f8 047c2196
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
</gl-collapse> </gl-collapse>
<gl-alert <gl-alert
v-if="containsVariableReference" v-if="containsVariableReference"
:title="__('Value may contain a variable reference')" :title="__('Value might contain a variable reference')"
:dismissible="false" :dismissible="false"
variant="warning" variant="warning"
data-testid="contains-variable-reference" data-testid="contains-variable-reference"
......
...@@ -26,5 +26,5 @@ export const AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY'; ...@@ -26,5 +26,5 @@ export const AWS_SECRET_ACCESS_KEY = 'AWS_SECRET_ACCESS_KEY';
export const AWS_TOKEN_CONSTANTS = [AWS_ACCESS_KEY_ID, AWS_DEFAULT_REGION, AWS_SECRET_ACCESS_KEY]; export const AWS_TOKEN_CONSTANTS = [AWS_ACCESS_KEY_ID, AWS_DEFAULT_REGION, AWS_SECRET_ACCESS_KEY];
export const CONTAINS_VARIABLE_REFERENCE_MESSAGE = __( export const CONTAINS_VARIABLE_REFERENCE_MESSAGE = __(
'Variable references indicated by %{codeStart}$%{codeEnd} may be expanded. If this is not what you want, consider %{docsLinkStart}using a workaround to prevent expansion%{docsLinkEnd}.', 'Values that contain the %{codeStart}$%{codeEnd} character can be considered a variable reference and expanded. %{docsLinkStart}Learn more.%{docsLinkEnd}',
); );
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
aws_tip_deploy_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'deploy-your-application-to-the-aws-elastic-container-service-ecs'), aws_tip_deploy_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'deploy-your-application-to-the-aws-elastic-container-service-ecs'),
aws_tip_commands_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'run-aws-commands-from-gitlab-cicd'), aws_tip_commands_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'run-aws-commands-from-gitlab-cicd'),
aws_tip_learn_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'aws'), aws_tip_learn_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'aws'),
contains_variable_reference_link: help_page_path('ci/variables/index', anchor: 'use-variables-or-in-other-variables'), contains_variable_reference_link: help_page_path('ci/variables/index', anchor: 'use-variables-in-other-variables'),
protected_environment_variables_link: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable'), protected_environment_variables_link: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable'),
masked_environment_variables_link: help_page_path('ci/variables/index', anchor: 'mask-a-cicd-variable'), masked_environment_variables_link: help_page_path('ci/variables/index', anchor: 'mask-a-cicd-variable'),
} } } }
......
...@@ -125,7 +125,7 @@ Use the [`value` and `description`](../yaml/index.md#prefill-variables-in-manual ...@@ -125,7 +125,7 @@ Use the [`value` and `description`](../yaml/index.md#prefill-variables-in-manual
keywords to define [variables that are prefilled](../pipelines/index.md#prefill-variables-in-manual-pipelines) keywords to define [variables that are prefilled](../pipelines/index.md#prefill-variables-in-manual-pipelines)
for [manually-triggered pipelines](../pipelines/index.md#run-a-pipeline-manually). for [manually-triggered pipelines](../pipelines/index.md#run-a-pipeline-manually).
### Use variables or `$` in other variables ### Use variables in other variables
You can use variables inside other variables: You can use variables inside other variables:
...@@ -138,7 +138,9 @@ job: ...@@ -138,7 +138,9 @@ job:
- 'eval "$LS_CMD"' # Executes 'ls -al' - 'eval "$LS_CMD"' # Executes 'ls -al'
``` ```
If you do not want the `$` interpreted as the start of a variable, use `$$` instead: #### Use the `$` character in variables
If you do not want the `$` character interpreted as the start of a variable, use `$$` instead:
```yaml ```yaml
job: job:
......
...@@ -36861,7 +36861,7 @@ msgstr "" ...@@ -36861,7 +36861,7 @@ msgstr ""
msgid "Value Stream Analytics gives an overview of how much time it takes to go from idea to production in your project." msgid "Value Stream Analytics gives an overview of how much time it takes to go from idea to production in your project."
msgstr "" msgstr ""
msgid "Value may contain a variable reference" msgid "Value might contain a variable reference"
msgstr "" msgstr ""
msgid "Value stream" msgid "Value stream"
...@@ -36927,10 +36927,10 @@ msgstr "" ...@@ -36927,10 +36927,10 @@ msgstr ""
msgid "ValueStream|The Default Value Stream cannot be deleted" msgid "ValueStream|The Default Value Stream cannot be deleted"
msgstr "" msgstr ""
msgid "Variable" msgid "Values that contain the %{codeStart}$%{codeEnd} character can be considered a variable reference and expanded. %{docsLinkStart}Learn more.%{docsLinkEnd}"
msgstr "" msgstr ""
msgid "Variable references indicated by %{codeStart}$%{codeEnd} may be expanded. If this is not what you want, consider %{docsLinkStart}using a workaround to prevent expansion%{docsLinkEnd}." msgid "Variable"
msgstr "" msgstr ""
msgid "Variable will be masked in job logs." msgid "Variable will be masked in job logs."
......
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