Skip to content

chore: update post-commit hook from npm-check-updates source#4537

Open
raineorshine with Copilot wants to merge 1 commit into
mainfrom
copilot/update-post-commit-hook
Open

chore: update post-commit hook from npm-check-updates source#4537
raineorshine with Copilot wants to merge 1 commit into
mainfrom
copilot/update-post-commit-hook

Conversation

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Syncs .hooks/post-commit with the improved version from npm-check-updates.

  • Portability: #!/usr/bin/env bash; ${TMPDIR:-/tmp} fallback; [[ conditionals throughout
  • Strict mode: set -Eeuo pipefail moved to top (replaces set -o pipefail mid-script)
  • notify(): local ERRORS; drop useless cat; add Linux notify-send support alongside macOS osascript
  • Guard: skip lint when node_modules is missing
  • Cleanup: rm -f moved into background subshell so it always runs; stderr merged into log via 2>&1
  • SHA: --short flag added to git rev-parse

Co-authored-by: raineorshine <750276+raineorshine@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Vercel preview: https://em-jxbnc9620-cybersemics.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants