alirezanet / Husky.Net

Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
https://alirezanet.github.io/Husky.Net/
MIT License
632 stars 29 forks source link

Please add support for git-flow hooks #10

Closed pprometey closed 2 years ago

pprometey commented 2 years ago

A collection of Git extensions to provide high-level repository operations for Vincent Driessen's branching model. This fork adds functionality not added to the original branch. https://github.com/petervanderdoes/gitflow-avh

As of Git for Windows 2.6.4, GitFlow (AVH edition) is included

alirezanet commented 2 years ago

Hi, Thanks for the feedback, I'll check it out. Just a question, What did you try to do that is not currently supported?

pprometey commented 2 years ago

Just a question, What did you try to do that is not currently supported?

Hi, i added dotnet husky add .husky/pre-flow-feature-finish "echo 'Feature finished!'"

It does not work through hasky, but when I add this hook to the .git/hooks folder in a project where husky is not installed, it works when I execute the command:

git flow feature finish feature_branch

Gitflow hooks are not supported Hasky.net

https://github.com/petervanderdoes/gitflow-avh/blob/develop/hooks/pre-flow-feature-finish

alirezanet commented 2 years ago

It now supports gitflow, update to v0.1.1

image

pprometey commented 2 years ago

Thank you very much for such a prompt response. And for adding this feature. I use it in a real project - a very useful package!

There was also a problem in CICD when building in docker, I could not find .git, I decided that I added an empty project to the solution, which did not get into docker, but restores packages and tools locally.

alirezanet commented 2 years ago

Thank you very much for such a prompt response. And for adding this feature. I use it in a real project - a very useful

You're welcome. Happy to hear that 🙏

There was also a problem in CICD when building in docker, I could not find .git, I decided that I added an empty project to the solution, which did not get into docker, but restores packages and tools locally.

Feel free to open a new issue, I'll check it out as soon as possible.

alirezanet commented 2 years ago

There was also a problem in CICD when building in docker, I could not find .git, I decided that I added an empty project to the solution, which did not get into docker, but restores packages and tools locally.

You don't need a new project actually, you should use the environment variable HUSKY=0 to disable husky in CI/CD pipelines I updated the documentations check it out.