Skip to content

Commit fe9a06f

Browse files
authoredOct 7, 2022
Enable cml comment create --publish by default (#1208)
* Enable `cml comment create --publish` by default * Fix test
1 parent 9cfa5ab commit fe9a06f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎bin/cml/comment/create.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ exports.options = kebabcaseKeys({
2424
},
2525
publish: {
2626
type: 'boolean',
27+
default: true,
2728
description: 'Upload any local images found in the Markdown report'
2829
},
2930
publishUrl: {

‎bin/cml/comment/create.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Comment integration tests', () => {
2323
--commit-sha, --head-sha Commit SHA linked to this comment
2424
[string] [default: \\"HEAD\\"]
2525
--publish Upload any local images found in the Markdown report
26-
[boolean]
26+
[boolean] [default: true]
2727
--publish-url Self-hosted image server URL
2828
[string] [default: \\"https://asset.cml.dev\\"]
2929
--watch Watch for changes and automatically update the

0 commit comments

Comments
 (0)
Please sign in to comment.