Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git hooks for commit and push #1130

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Add git hooks for commit and push #1130

wants to merge 4 commits into from

Conversation

zorkow
Copy link
Member

@zorkow zorkow commented Sep 11, 2024

PR adds git hooks for commit and push. The hooks are run by husky. Currently the hooks are setup as follows:

  1. pre-commit runs lint-staged that applies lifecycle scripts to staged files, restages the files and commits. It blocks the commit if the lifecycle scripts fail or would result in an empty commit. Right now I have only added pnpm format:fix. Once the code base is fully linted we should also add pnpm lint:fix.
  2. pre-push should run the test suite. But I've committed them out for the time being as this can be pretty annoying...

@zorkow zorkow requested a review from dpvc September 11, 2024 19:18
@dpvc dpvc added this to the v4.0 milestone Sep 21, 2024
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