-
# 手牵手使用Husky & Nodejs自定义你的Git钩子
## 概述
和其它版本控制系统一样,Git能在一些特定的重要动作发生时触发自定义脚本。Git钩子最常见的使用场景包括进行提交规范审核,代码规范审核,进行自动化部署等。在本篇文章中,我会用一个例子详细介绍使用Husky & nodeJs脚本配合使用Git常用钩子。
## Git钩子在何方
当你用`git init`初始化…
-
Most projects will have some form of precommit hooks for linting or tests through libraries such as [lint-staged](https://github.com/okonet/lint-staged) and [husky](https://github.com/typicode/husky).…
-
For cargo-husky users that are new to Rust and the cargo system, it might be unclear how to let updated cargo-husky feature changes in `Cargo.toml` also update the Git hooks.
For example, perform t…
-
This workflow can, among other things, run unit tests and pre-commit hooks, make sure that every PR is connected to an issue.
-
I believe that the major breakpoint with `repro` is currently that users may change dependencies on packages, code, or scripts and forget to run automate() to update the Dockerfile. Here is an idea to…
-
**Is your feature request related to a problem? Please describe.**
It's common for developers to unintentionally update their local `yarn.lock` file while developing locally (simply bootstrapping t…
-
Not sure if I'm holding this the wrong way.
It's clear how one would be able to utilize `tflint` from the module repos via `terragrunt` for example, using `after_hooks` for `validate`.
What isn…
-
Create hand-crafted examples with well-defined compiler output and test harness.
-
Without this, formatting is not checked in CI and only applied if the precommit hooks are installed, which is optional
Options:
- Add `prettier --list-different` to validate command
- Integrate p…
-
* **I'm submitting a ...**
- [ x] bug report
- [ ] feature request
Currently I have installed pre-commit with pip . If I do an audit it works fine with:
Nothing to audit!
I added a preconf…