diff --git a/action.yml b/action.yml index 9590cba..a676f41 100644 --- a/action.yml +++ b/action.yml @@ -94,7 +94,20 @@ inputs: - Prefix a path with a bang (`!`) to make it explicitly _not_ ignored. The order of multiple paths does _not_ take precedence. The `!` prefix can be applied to a submodule's path (if desired) but not hidden directories. - - Glob patterns are not supported here. All asterisk characters (`*`) are literal. + - **As of v2.12**, glob patterns are supported here. + All asterisk characters (`*`) were previously literal. + required: false + default: '.github' + ignore-tidy: + description: |- + Use this option to allow clang-tidy to ignore certain paths/files. + See [`ignore`](#ignore) for more details on possible values. + required: false + default: '.github' + ignore-format: + description: |- + Use this option to allow clang-format to ignore certain paths/files. + See [`ignore`](#ignore) for more details on possible values. required: false default: '.github' thread-comments: @@ -191,6 +204,11 @@ inputs: > The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews. required: false default: false + passive-reviews: + description: | + Set this option to `true` to prevent Pull Request reviews from approving or requesting changes. + default: false + required: false jobs: description: | The number of jobs to run in parallel. @@ -272,11 +290,14 @@ runs: --no-lgtm=${{ inputs.no-lgtm }} \ --step-summary=${{ inputs.step-summary }} \ --ignore="${{ inputs.ignore }}" \ + --ignore-tidy="${{ inputs.ignore-tidy }}" \ + --ignore-format="${{ inputs.ignore-format }}" \ --database=${{ inputs.database }} \ --file-annotations=${{ inputs.file-annotations }} \ --extra-arg="${{ inputs.extra-args }}" \ --tidy-review="${{ inputs.tidy-review }}" \ --format-review="${{ inputs.format-review }}" \ + --passive-reviews="${{ inputs.passive-reviews }}" \ --jobs=${{ inputs.jobs }} - name: Setup python venv (Windows) @@ -308,11 +329,14 @@ runs: ' --no-lgtm=${{ inputs.no-lgtm }}' + ' --step-summary=${{ inputs.step-summary }}' + ' --ignore="${{ inputs.ignore }}"' + + ' --ignore-tidy="${{ inputs.ignore-tidy }}"' + + ' --ignore-format="${{ inputs.ignore-format }}"' + ' --database=${{ inputs.database }}' + ' --file-annotations=${{ inputs.file-annotations }}' + ' --extra-arg="${{ inputs.extra-args }}"' + ' --tidy-review="${{ inputs.tidy-review }}"' + ' --format-review="${{ inputs.format-review }}"' + + ' --passive-reviews="${{ inputs.passive-reviews }}"' + ' --jobs=${{ inputs.jobs }}' Invoke-Expression -Command $app diff --git a/docs/action.yml b/docs/action.yml index 40b65cd..5e5c798 100644 --- a/docs/action.yml +++ b/docs/action.yml @@ -20,6 +20,10 @@ inputs: required-permission: 'contents: read #file-changes' ignore: minimum-version: '1.3.0' + ignore-tidy: + minimum-version: '2.12.0' + ignore-format: + minimum-version: '2.12.0' thread-comments: minimum-version: '2.6.2' required-permission: 'contents: write #thread-comments' @@ -40,6 +44,9 @@ inputs: format-review: minimum-version: '2.9.0' required-permission: 'pull-requests: write #pull-request-reviews' + passive-reviews: + minimum-version: '2.12.0' + required-permission: 'pull-requests: write #pull-request-reviews' jobs: minimum-version: '2.11.0' outputs: diff --git a/docs/permissions.md b/docs/permissions.md index d10163f..3495c39 100644 --- a/docs/permissions.md +++ b/docs/permissions.md @@ -72,7 +72,7 @@ The [`thread-comments`](inputs-outputs.md#thread-comments) feature requires the ## Pull Request Reviews -The [`tidy-review`](inputs-outputs.md#tidy-review) and [`format-review`](inputs-outputs.md#format-review) features require the following permissions: +The [`tidy-review`](inputs-outputs.md#tidy-review), [`format-review`](inputs-outputs.md#format-review), and [`passive-reviews`](inputs-outputs.md#passive-reviews) features require the following permissions: ```yaml permissions: diff --git a/requirements.txt b/requirements.txt index de7ed9f..02917bc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Install clang-tools binaries (clang-format, clang-tidy) # For details please see: https://github.com/cpp-linter/clang-tools-pip -clang-tools==0.12.1 +clang-tools==0.13.0 # cpp-linter core Python executable package # For details please see: https://github.com/cpp-linter/cpp-linter -cpp-linter==1.8.1 +cpp-linter==1.10.0