-
Notifications
You must be signed in to change notification settings - Fork 449
32 lines (30 loc) · 1.23 KB
/
command-block.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Comment on manual command changes
on:
pull_request:
paths:
- 'commands/docs/**'
# Fix Resource not accessible by integration (updatePullRequest)
permissions:
issues: write
contents: read
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
# If the docs was updated by hustcer, skip the commenting step
# if: ${{ github.event.pull_request.user.login != 'hustcer' }}
steps:
- uses: actions/[email protected]
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' +
'As we autogenerate these command pages from the help information defined with the command after each release:\n'+
'- If you already updated the command help, you are already done!\n'+
'- 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'+
'Thanks for helping out!',
event: 'COMMENT'
})