Skip to content

Commit 39214ce

Browse files
authored
Merge pull request #319 from moderntribe/fix/MOOSE-342/fix-git-hooks
Fix/moose 342/fix git hooks
2 parents 744b73d + 9056e88 commit 39214ce

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ item (Added, Changed, Depreciated, Removed, Fixed, Security).
1010
- Updated: All plugins, composer dependencies, and npm packages to latest versions.
1111
- Added: New Accordion block styling
1212
- Removed: Details block styling
13+
- Fixed: pre-push git hooks running properly again.
1314

1415
## [2026.01]
1516

lefthook.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ pre-push:
1313
parallel: true
1414
jobs:
1515
- name: phpcs
16-
run: ./vendor/bin/phpcs -- {staged_files}
16+
files: git diff --name-only HEAD @{push}
17+
run: ./vendor/bin/phpcs
1718
glob:
1819
- ".phpstorm.meta.php"
1920
- "local-config-sample.php"
@@ -31,21 +32,25 @@ pre-push:
3132
- "wp-content/themes/core/*.php"
3233
- "wp-content/plugins/core/*.php"
3334
- name: lintcss
34-
run: ./node_modules/.bin/wp-scripts lint-style {staged_files}
35+
files: git diff --name-only HEAD @{push}
36+
run: ./node_modules/.bin/wp-scripts lint-style
3537
glob:
3638
- "wp-content/themes/core/*.pcss"
3739
- name: lintjs
38-
run: ./node_modules/.bin/wp-scripts lint-js {staged_files}
40+
files: git diff --name-only HEAD @{push}
41+
run: ./node_modules/.bin/wp-scripts lint-js
3942
glob:
4043
- "wp-content/themes/core/*.js"
4144
- name: lintconfigs
42-
run: ./node_modules/.bin/wp-scripts lint-js {staged_files}
45+
files: git diff --name-only HEAD @{push}
46+
run: ./node_modules/.bin/wp-scripts lint-js
4347
glob:
4448
- "browsersync.config.js"
4549
- "postcss.config.js"
4650
- "webpack.config.js"
4751
- name: lintpkgjson
48-
run: ./node_modules/.bin/wp-scripts lint-pkg-json {staged_files}
52+
files: git diff --name-only HEAD @{push}
53+
run: ./node_modules/.bin/wp-scripts lint-pkg-json
4954
glob:
5055
- "package.json"
5156

0 commit comments

Comments
 (0)