Skip to content

dbeaver/pro#6075 remove commit hooks #3548

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

Merged
merged 6 commits into from
Jul 8, 2025

Conversation

devnaumov
Copy link
Member

@devnaumov devnaumov commented Jun 25, 2025

closes 6075

Special flags were added (merge, rebase) to disable pre-commit hooks during the merge and rebase stages. Postinstall script will be executed anyway due to issue so no need to keep it in the package json

Comment on lines -25 to -26
"version:set": "yarn workspaces foreach -Ap --include '@cloudbeaver/product-*' run version:set",
"postinstall": "[ -z $CI ] && yarn lefthook install || true"
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want to remove it completely, or should we just add a special command so only frontend developers can install it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I suggest to:

  1. Rename the command to something like install-lefthook so that yarn does not execute this command after installation of the deps
  2. Add a VSCode task
  3. Add to the frontend guide that after all installations, we need to execute this task so the hook works for frontend devs

Copy link
Contributor

Choose a reason for hiding this comment

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

But before we do that, is there any chance to fix some config so the hook works only for frontend-specific files: ts, tsx, CSS, etc., but never throws anything for the backend developers?

@sergeyteleshev
Copy link
Contributor

cool! nice solution

@Wroud Wroud merged commit 55db159 into devel Jul 8, 2025
10 checks passed
@Wroud Wroud deleted the dbeaver/pro#6075-remove-commit-hooks branch July 8, 2025 18:12
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.

4 participants