Skip to content

chore(hooks): mirror CI checks in pre-push hook#110

Merged
BryanFRD merged 1 commit into
mainfrom
chore/precommit-mirror-ci
May 13, 2026
Merged

chore(hooks): mirror CI checks in pre-push hook#110
BryanFRD merged 1 commit into
mainfrom
chore/precommit-mirror-ci

Conversation

@BryanFRD
Copy link
Copy Markdown
Contributor

@BryanFRD BryanFRD commented May 8, 2026

Summary

Adds .githooks/pre-push mirroring .github/workflows/ci.yml's lint + test jobs.

.githooks/pre-push runs:

  • shellcheck scripts/*.sh (mirrors lint.ShellCheck)
  • bats tests/ (mirrors test.Run tests)

Both steps gracefully no-op if the corresponding tool isn't installed (install via brew install shellcheck bats-core or distro equivalent).

To activate: run bash .githooks/install.sh once.

Test plan

  • shellcheck scripts/*.sh passes
  • bats tests/ passes
  • bash .githooks/install.sh then git push --dry-run does not crash

Copilot AI review requested due to automatic review settings May 8, 2026 13:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@BryanFRD BryanFRD merged commit 6ab4f8b into main May 13, 2026
10 of 15 checks passed
@BryanFRD BryanFRD deleted the chore/precommit-mirror-ci branch May 13, 2026 14:06
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