fix js lint filename pattern matching (#46605)

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Ron Rennick 2024-04-17 10:55:52 -03:00 committed by GitHub
parent 9cd793abbc
commit f51d6fe652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,7 @@
baseBranch=${1:-"trunk"} baseBranch=${1:-"trunk"}
# shellcheck disable=SC2046 # shellcheck disable=SC2046
changedFiles=$(git diff $(git merge-base HEAD $baseBranch) --relative --name-only --diff-filter=d -- '*.js' '*ts' '*tsx') changedFiles=$(git diff $(git merge-base HEAD $baseBranch) --relative --name-only --diff-filter=d -- '*.js' '*.ts' '*.tsx')
# Only complete this if changed files are detected. # Only complete this if changed files are detected.
if [[ -z $changedFiles ]]; then if [[ -z $changedFiles ]]; then

View File

@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: fix js lint filename pattern matching