diff --git a/.github/workflows/command-block.yml b/.github/workflows/command-block.yml index 7874e64dd2..704f907709 100644 --- a/.github/workflows/command-block.yml +++ b/.github/workflows/command-block.yml @@ -8,6 +8,9 @@ on: jobs: comment: runs-on: ubuntu-latest + # Maintainers/Contributors can add themselves exempt from this bot if they regularly run the command doc generation. + # If you are on this list, be careful about accidental changes! + if: ${{!contains(fromJSON('["hustcer", "sholderbach"]'), github.event.pull_request.user.login)}} steps: - uses: actions/github-script@v7.0.1 with: @@ -17,7 +20,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' + - 'You should not modify the files in `commands/docs` or `commands/categorees`!\n' + + '**You should not modify the files in `commands/docs` or `commands/categories`!**\n' + 'We autogenerate these command pages from the `help` information defined by the command implementation, after each release. Thus:\n'+ '- If you already updated the command help, you are already done and can close this PR!\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 in the `impl Command` and `Signature`.\n'+