Skip to content

Commit c60cf52

Browse files
committed
Add command-line option for issue id.
1 parent d406a2a commit c60cf52

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bin/cml/comment/create.js

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ exports.options = kebabcaseKeys({
1616
description:
1717
'Post to an existing PR/MR associated with the specified commit'
1818
},
19+
issue: {
20+
type: 'string',
21+
description: 'Issue id to post comment to.',
22+
default: '',
23+
conflicts: ['pr']
24+
},
1925
commitSha: {
2026
type: 'string',
2127
alias: 'head-sha',

bin/cml/comment/create.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('Comment integration tests', () => {
2929
Options:
3030
--pr Post to an existing PR/MR associated with the
3131
specified commit [boolean]
32+
--issue Issue id to post comment to. [string] [default: \\"\\"]
3233
--commit-sha, --head-sha Commit SHA linked to this comment
3334
[string] [default: \\"HEAD\\"]
3435
--publish Upload any local images found in the Markdown report

0 commit comments

Comments
 (0)