Skip to content

Commit

Permalink
add input for passive reviews
Browse files Browse the repository at this point in the history
resolves #243
  • Loading branch information
2bndy5 committed Jun 7, 2024
1 parent ef37fc6 commit 9127fa5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,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.
Expand Down Expand Up @@ -292,6 +297,7 @@ runs:
--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)
Expand Down Expand Up @@ -330,6 +336,7 @@ runs:
' --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
3 changes: 3 additions & 0 deletions docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,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:
Expand Down
2 changes: 1 addition & 1 deletion docs/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9127fa5

Please sign in to comment.