Skip to content

Commit 0a5c17c

Browse files
committed
Fix command-block workflow
1 parent 9823c04 commit 0a5c17c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/command-block.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
- uses: actions/[email protected]
2020
with:
2121
script: |
22-
github.rest.issues.createComment({
23-
issue_number: context.issue.number,
22+
github.rest.pulls.createReview({
2423
owner: context.repo.owner,
2524
repo: context.repo.repo,
25+
pull_number: context.issue.number,
2626
body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' +
2727
'As we autogenerate these command pages from the help information defined with the command after each release:\n'+
2828
'- If you already updated the command help, you are already done!\n'+
2929
'- Else, please look for the command in the [source tree](https://github.com/nushell/nushell/tree/main/crates) and make your changes directly there.\n\n'+
30-
'Thanks for helping out!'
30+
'Thanks for helping out!',
31+
event: 'COMMENT'
3132
})

0 commit comments

Comments
 (0)