From fe9a06f2009d7bc1bc2327d637c68e9810a1e5e1 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sat, 8 Oct 2022 01:02:08 +0200 Subject: [PATCH] Enable `cml comment create --publish` by default (#1208) * Enable `cml comment create --publish` by default * Fix test --- bin/cml/comment/create.js | 1 + bin/cml/comment/create.test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cml/comment/create.js b/bin/cml/comment/create.js index 59ea2a60d..8036dca6f 100644 --- a/bin/cml/comment/create.js +++ b/bin/cml/comment/create.js @@ -24,6 +24,7 @@ exports.options = kebabcaseKeys({ }, publish: { type: 'boolean', + default: true, description: 'Upload any local images found in the Markdown report' }, publishUrl: { diff --git a/bin/cml/comment/create.test.js b/bin/cml/comment/create.test.js index a7a8a28ec..e9245a437 100644 --- a/bin/cml/comment/create.test.js +++ b/bin/cml/comment/create.test.js @@ -23,7 +23,7 @@ describe('Comment integration tests', () => { --commit-sha, --head-sha Commit SHA linked to this comment [string] [default: \\"HEAD\\"] --publish Upload any local images found in the Markdown report - [boolean] + [boolean] [default: true] --publish-url Self-hosted image server URL [string] [default: \\"https://asset.cml.dev\\"] --watch Watch for changes and automatically update the