Skip to content

Commit

Permalink
Fix pre-commit GH Action not running on PR updates (#107)
Browse files Browse the repository at this point in the history
See reviewdog/action-eslint#29 (comment) for an explanation on how to filter out draft PRs.

Co-authored-by: hello-vinitha <[email protected]>
  • Loading branch information
hello-binit and hello-vinitha authored Oct 10, 2024
1 parent 10ba52f commit f4df34e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
- master
pull_request:
types: [review_requested, ready_for_review]
types: [opened, reopened, synchronize, review_requested, ready_for_review]
workflow_dispatch:

concurrency:
Expand All @@ -19,6 +19,7 @@ env:
jobs:
pre-commit:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down

0 comments on commit f4df34e

Please sign in to comment.