From 584e60f6c8c91df74754d9bb66edb9497903f9a5 Mon Sep 17 00:00:00 2001 From: John Hobbs Date: Tue, 3 Dec 2024 09:48:51 -0600 Subject: [PATCH] Update exitZeroOnChanges default value Also add markdown support on `defaultComment` value --- chromatic-config/options.json | 2 +- src/components/ConfigurationOptions/ConfigurationOptions.astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chromatic-config/options.json b/chromatic-config/options.json index 4c3a6b53..6f46983c 100644 --- a/chromatic-config/options.json +++ b/chromatic-config/options.json @@ -96,7 +96,7 @@ "description": "If all snapshots render, but there are visual changes, exit with code `0` rather than the usual exit code `1`. Only for given branch, if specified.", "type": ["glob", "boolean"], "example": "`\"!(main)\"` or `true`", - "default": false, + "defaultComment": "`true` in the GitHub Action, otherwise `false`", "supports": ["CLI", "GitHub Action", "Config File"] }, { diff --git a/src/components/ConfigurationOptions/ConfigurationOptions.astro b/src/components/ConfigurationOptions/ConfigurationOptions.astro index f676a161..1e71800b 100644 --- a/src/components/ConfigurationOptions/ConfigurationOptions.astro +++ b/src/components/ConfigurationOptions/ConfigurationOptions.astro @@ -14,7 +14,7 @@ export const formatOption = async (option: ConfigOptionType) => { default: option.default !== undefined ? `${option.default}` - : option.defaultComment, + : await markdown(option.defaultComment), }; };