Skip to content

Commit

Permalink
Update exitZeroOnChanges default value
Browse files Browse the repository at this point in the history
Also add markdown support on `defaultComment` value
  • Loading branch information
jmhobbs committed Dec 3, 2024
1 parent e3532d2 commit 584e60f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chromatic-config/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const formatOption = async (option: ConfigOptionType) => {
default:
option.default !== undefined
? `<code>${option.default}</code>`
: option.defaultComment,
: await markdown(option.defaultComment),
};
};
Expand Down

0 comments on commit 584e60f

Please sign in to comment.