Comments (5)
I've not used husky much, but I played I around with it this morning. This was the configuration I ended up getting to work as intended.
"husky": {
"hooks": {
"pre-commit": "yarn test && .git/hooks/pre-commit-guet",
"commit-msg": "yarn test && .git/hooks/commit-msg-guet",
"post-commit": "yarn test && .git/hooks/post-commit-guet"
}
}
To get the -guet
git hooks, as of 2.2.0, you can do guet start -a
. Otherwise, guet start
will prompt you to create them.
from guet.
When husky is used in a subproject(we have a mono repo) Guet cant find the location of the commit message, and is not appending the committers correctly
from guet.
The husky docs recommend against installing husky in a sub folder of a mono repo. I plan on looking at this more this weekend
from guet.
So I looked into this further, and before using the "commit-msg": ".git/hooks/commit-msg-guet"
trick would call the script, but the script wouldn't do anything. The problem should be addressed now, so I'm going to close the issue for the time being.
from guet.
I also added using husky to the FAQ in #87
from guet.
Related Issues (20)
- Introduce pre-commit to project
- Update documentation to reflect recent changes.
- Create template for bug report / feature request HOT 1
- Add Support for Husky v6 HOT 2
- Update documentation to include committer add format
- Guet get outputs nothing
- Print helpful common error messages out to terminal HOT 3
- Better warning message for when guet set is called in a non-git folder
- Include comment explaining guet in local config
- Guet errors out when hooks directory isn't present in .git folder HOT 1
- Not started error message edit HOT 1
- Call unexpected errors unexpected
- Don't change committers if --no-edit supplied to commit
- Warn user when set committers and commit committers differ
- Don't show "guet successfully started" message after cancelling the request HOT 1
- Alphebatize committers list
- Gracefully fail when no committers are set in post commit hook
- Add uninstall documentation, please 🙂 HOT 2
- Add way to remove guet from initialized repo HOT 4
- Husky v5 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guet.