summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue')
-rw-r--r--app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue b/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue
index 0d1c214c5b1..58a96c3f725 100644
--- a/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue
+++ b/app/assets/javascripts/pipeline_editor/components/lint/ci_lint_results.vue
@@ -10,11 +10,11 @@ const thBorderColor = 'gl-border-gray-100!';
export default {
correct: {
variant: 'success',
- text: __('syntax is correct.'),
+ text: __('Syntax is correct.'),
},
incorrect: {
variant: 'danger',
- text: __('syntax is incorrect.'),
+ text: __('Syntax is incorrect.'),
},
includesText: __(
'CI configuration validated, including all configuration added with the %{codeStart}includes%{codeEnd} keyword. %{link}',
@@ -48,19 +48,23 @@ export default {
},
jobs: {
type: Array,
- required: true,
+ required: false,
+ default: () => [],
},
errors: {
type: Array,
- required: true,
+ required: false,
+ default: () => [],
},
warnings: {
type: Array,
- required: true,
+ required: false,
+ default: () => [],
},
dryRun: {
type: Boolean,
- required: true,
+ required: false,
+ default: false,
},
lintHelpPagePath: {
type: String,
@@ -99,7 +103,7 @@ export default {
data-testid="ci-lint-status"
>{{ status.text }}
<gl-sprintf :message="$options.includesText">
- <template #code="{content}">
+ <template #code="{ content }">
<code>
{{ content }}
</code>