qgadrian

qgadrian

Git hooks - Add git hooks to Elixir projects

Hey guys, I just wanted to share a library that was being around for a while already, but I didn’t share properly until now so it can help more people :vulcan_salute:

It’s called git_hooks and the main features are:

  • Git hooks actions are configured in your project
  • Auto install the configured hooks (configurable)
  • The actions can be system commands or a script in your project

Any feedback or PRs are highly appreciated :heart:

Thank you and stay safe out there!

Most Liked

qgadrian

qgadrian

Hey @r-c!

Is this supposed to occur upon compilation?

Correct! (here it is where in the code).

It’s weird, I just tested it myself in a new project and it worked fine :confused: Since the auto-install will run every time the dependency is compiled, could it be possible that it was already compiled in your case?

Sorry for the late response mate :pray:

Mukulch15

Mukulch15

@qgadrian Hey thanks for the awesome library. I have some concerns regarding automatic installations as well. I placed some logs within the library code and found that the git hooks path that the code uses in case of mix git_hooks.install is different from the one that is generated when we use mix deps.compile.
I believe that when we use mix deps.compile it takes the git hook directory relative to the deps folder. Maybe I am wrong but just wanted to let you know.

qgadrian

qgadrian

Did you try the latest release? I recently added support for “other cases” but the regular, monolith, standard, elixir application.

If you tried it and still have problems, can you please open an issue on GitHub with more details? Then I will take a look and help you out with it :relaxed:

Where Next?

Popular in Announcing Top

mathieuprog
Hello :wave: Allow me to introduce you to Tz, an alternative time zone database support to Tzdata. Why another library? First and fore...
New
devonestes
Introducing assertions, the library that helps you write really great test assertions! GitHub: https://github.com/devonestes/assertions ...
New
riverrun
I’ve just released version 3 of Comeonin, a password hashing library. The following small changes have been made: changes to the NIF c...
New
bryanjos
Hi, I just published version 0.23.0 of Elixirscript. Most of the changes are around JavaScript interop now that Elixirscript uses the ...
New
oltarasenko
Dear Elixir community, After a year of development, bug fixes, and improvements, we are proudly ready to share the release of Crawly 0.1...
New
Hal9000
Here is my first stab at this. README pasted below. https://github.com/Hal9000/elixir_random Comments and critiques are welcome. Th...
New
zoltanszogyenyi
Hey everyone :wave: Excited to join this forum - I am one of the founders and current project maintainers of a popular and open-source U...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
kevinlang
Hey all, We have made an Ecto3 Adapter for SQLite3, ecto_sqlite3! We have successfully on-boarded the full suite of integration tests (...
New
wfgilman
I’ve cleaned up and open sourced three financial libraries I was using for my company. They are bindings for the APIs of these three comp...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
hariharasudhan94
Lets say i have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => "XX...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement