antosubash / blog-comments

MIT License
0 stars 0 forks source link

posts/automatic-version-and-release #21

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Automatically version and release .Net Application

In this post you will see how to automatically version and release a .Net Application using GitHub Actions

https://blog.antosubash.com/posts/automatic-version-and-release

alirezanet commented 1 year ago

Great article thanks, I think one more step is required to force other project contributors to follow the commit message convention when using Husky.Net which is attaching husky to the project file. this way the installation will automatically done for others working with our repo.

dotnet husky attach <path-to-project-file>
antosubash commented 1 year ago

@alirezanet Thanks for the suggestion. I have updated the blog post.

ntulip-qpac commented 1 year ago

How can we ensure that the hooks run for developers working on a mac or windows? I followed this article without any issues on my mac but I cannot make it trigger while on Windows.

antosubash commented 1 year ago

@ntulip-qpac I'm not sure about the mac. but the article and video is made in windows. so it should work without any problem in windows. maybe @alirezanet can help? he is the creator of the library.

alirezanet commented 1 year ago

Hello, @ntulip-qpac If you configure it properly, it ought to function on the Mac as well. Please create an issue on the Husky.Net GitHub if you are unsuccessful so that we can look into it further.

sturlath commented 1 year ago

I´m missing something for the Husky setup because for dotnet husky add pre-commit -c "echo husky.net is awesome" I just get "failed to execute command 'git'. Could not find Husky path" but I can run Husky command. I have tried to run this in various places but cant figure it out @antosubash

sturlath commented 1 year ago

I noticed that the problem is the command "dotnet husky install" that is not creating a .husky folder with the error ".git can't be found (see https://alirezanet.github.io/Husky.Net/guide/getting-started) Git hooks installation failed"

Any ideas what might be causing this?

alirezanet commented 1 year ago

@Hi sturlath,

are you using git submodules? if so it might be related to a known problem. if not please make sure you are running the husky install command from the project root directory where the .git folder exists.

sturlath commented 1 year ago

Hi @alirezanet no I´m not using submodules but I´m not running this in the root where the .git folder exists. I will try that.

shahzaibali-code commented 1 year ago

Hi @alirezanet ,When I use the command "dotnet husky install," I get an error. Error: failed to execute command 'git' Could not determine git configuration

Any ideas what might be causing this?

alirezanet commented 1 year ago

Hi @sturlath,

Hi @alirezanet no I´m not using submodules but I´m not running this in the root where the .git folder exists. I will try that.

you should execute husky commands from the same folder that .git exists, if for some reason it didn't work please open an issue on Huksy.Net github.


Hi @shahzaibali-code,

Hi @alirezanet ,When I use the command "dotnet husky install," I get an error. Error: failed to execute command 'git' Could not determine git configuration Any ideas what might be causing this?

Usually these errors is related to git itself or the installation, you're either missing some git configuration files or git path is not set in the PATH environment variable. if you think this is a bug in Husky.Net, please open an issue on Huksy.Net github. .