gabyx / Githooks

🦎 Githooks: per-repo and shared Git hooks with version control and auto update. [✩Star] if you're using it!
MIT License
102 stars 5 forks source link

feat: Add possibility to pass envs to shared hooks #95

Closed gabyx closed 1 year ago

gabyx commented 2 years ago

Implement in .shared.yaml:

envs: 
    hooksA:
      - "OPTION=A"
    hooksB:
      - "OPTION=G"

which would inject env variables before running all hooks in namespace hooksAand hooksB.

With that, the user can customize some shared hooks when using them.

gabyx commented 1 year ago

Solved in #96.