Skip to content

Commit

Permalink
Fix command-block workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Dec 22, 2024
1 parent d4de043 commit 523fe97
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/command-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ on:
paths:
- 'commands/docs/**'

# Fix Resource not accessible by integration (updatePullRequest)
permissions:
issues: write
contents: read
pull-requests: write

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: peter-evans/create-or-update-comment@v4
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
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!'
})
issue-number: ${{ github.event.pull_request.number }}
body: |
Awesome that you are trying to improve the documentation of a nushell command!
As we autogenerate these command pages from the help information defined with the command after each release:
- If you already updated the command help, you are already done!
- Else, please look for the command in the [source tree](https://github.com/nushell/nushell/tree/main/crates) and make your changes directly there.
Thanks for helping out!
2 changes: 1 addition & 1 deletion commands/docs/registry_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: registry query
categories: |
system
version: 0.100.0
version: 0.101.0
system: |
Query the Windows registry.
usage: |
Expand Down

0 comments on commit 523fe97

Please sign in to comment.