# lendis-git-hooks

> Git hooks are scripts that run automatically every time a particular event occurs in a Git repository. They can be used to enforce version control best practices.

Latest version **1.0.4** (published 2021-07-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install lendis-git-hooks
pnpm add lendis-git-hooks
yarn add lendis-git-hooks
bun add lendis-git-hooks
```

Provides the command `hooks`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-07-21 |
| First published | 2021-07-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ioanniskatri |
| Maintainers | ioanniskatri |

## Links

- npm: https://www.npmjs.com/package/lendis-git-hooks
- Repository: https://github.com/lendis-tech/git-hooks
- Homepage: https://github.com/lendis-tech/git-hooks#readme
- Issues: https://github.com/lendis-tech/git-hooks/issues
- npm.io page: https://npm.io/package/lendis-git-hooks

## Dependencies (4)

- [boxen](https://npm.io/package/boxen.md) ^5.0.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [yargs](https://npm.io/package/yargs.md) ^17.0.1
- [commander](https://npm.io/package/commander.md) ^8.0.0

## Recent versions

- 1.0.4 (latest) — 2021-07-21
- 1.0.3 — 2021-07-21
- 1.0.2 — 2021-07-21
- 1.0.1 — 2021-07-21
- 1.0.0 — 2021-07-21

## README

## Description
Git hooks are scripts that run automatically every time a particular event occurs in a Git repository.
They can be used to enforce version control best practices.


## Setup

- Install with npm: `npm i lendis-git-hooks`

- enable them by running: `npx hooks --init`
 


## Existing hooks

### - commit-msg

A Git hook automatically invoked by `git commit`.

Utilizes regex to check if the commit message follows a specific structure. 
Failing to successfully  pass the validation it will result to not allow the user to commit the code. 

#### Current pattern

`<IU-ticketnumber>: <context-name>`

**Example**: `IU-123: commit message`

### - pre-push

A Git hook automatically invoked by `git push`.

Utilizes regex to check if the branch name follows a specific structure.

#### Current pattern
`<IU-ticketnumber>_<context-name>`

**Example**: `IU-345_example-message`

## How to contribute

This repository adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) once it hits v1.0.0.
If you change anything, make sure to add you changes to the [CHANGELOG.md](CHANGELOG.md).

---
_Source: https://npm.io/package/lendis-git-hooks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
