diff --git a/bin/cml/comment/create.js b/bin/cml/comment/create.js index 1b98036b4..c0dea33c8 100644 --- a/bin/cml/comment/create.js +++ b/bin/cml/comment/create.js @@ -20,6 +20,12 @@ exports.options = kebabcaseKeys({ description: 'Post to an existing PR/MR associated with the specified commit' }, + commitSha: { + type: 'string', + alias: 'head-sha', + default: 'HEAD', + description: 'Commit SHA linked to this comment' + }, watch: { type: 'boolean', description: 'Watch for changes and automatically update the comment' @@ -29,12 +35,6 @@ exports.options = kebabcaseKeys({ description: 'File used to trigger the watcher', hidden: true }, - commitSha: { - type: 'string', - alias: 'head-sha', - default: 'HEAD', - description: 'Commit SHA linked to this comment' - }, publish: { type: 'boolean', default: true, diff --git a/bin/cml/comment/create.test.js b/bin/cml/comment/create.test.js index d9a61be6a..681ae8b05 100644 --- a/bin/cml/comment/create.test.js +++ b/bin/cml/comment/create.test.js @@ -20,10 +20,10 @@ describe('Comment integration tests', () => { Options: --pr Post to an existing PR/MR associated with the specified commit [boolean] - --watch Watch for changes and automatically update the - comment [boolean] --commit-sha, --head-sha Commit SHA linked to this comment [string] [default: \\"HEAD\\"] + --watch Watch for changes and automatically update the + comment [boolean] --publish Upload any local images found in the Markdown report [boolean] [default: true] --publish-url Self-hosted image server URL