mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 06:58:47 -05:00
* [AI] Add post-merge hook to auto-install when yarn.lock changes Mirrors the existing post-checkout hook behavior: after a git pull or merge, if yarn.lock changed between ORIG_HEAD and HEAD, automatically runs yarn install to keep dependencies in sync. https://claude.ai/code/session_01JHoMhGANLTc1q67s1dUHrt * Add release notes for PR #7248 --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
8 lines
217 B
Bash
Executable File
8 lines
217 B
Bash
Executable File
#!/bin/sh
|
|
# Run yarn install after pulling/merging (if yarn.lock changed)
|
|
|
|
if git diff --name-only ORIG_HEAD HEAD | grep -q "^yarn.lock$"; then
|
|
echo "yarn.lock changed — running yarn install..."
|
|
yarn install
|
|
fi
|