# @talentry/elm-git-hooks

> ## Installation

Latest version **1.0.1** (published 2021-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @talentry/elm-git-hooks
pnpm add @talentry/elm-git-hooks
yarn add @talentry/elm-git-hooks
bun add @talentry/elm-git-hooks
```

Provides the command `elm-git-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.1 |
| Published | 2021-05-24 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 139.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | michael.combs28 |

## Links

- npm: https://www.npmjs.com/package/@talentry/elm-git-hooks
- npm.io page: https://npm.io/package/@talentry/elm-git-hooks

## Recent versions

- 1.0.1 (latest) — 2021-05-24
- 1.0.0 — 2021-05-24

## README

# Elm Git Hooks

## Installation

```sh
npm install @talentry/elm-git-hooks
```

## Usage

```sh
elm-git-hooks <sub command>
```

This script is meant to be used with [Husky](https://typicode.github.io/husky/#/)

### prepare-message

Pre-append a commit message based on a provided regex string matching against git branch name.
It will match against the first group found in the string. If a match isn't found, a message is not
generated.

Any commit with a commit source eg. merging branches will also be omitted.

```sh
elm-git-hooks prepare-message 'JIRA-[0-9]{4}' commit-message-file commit-source?
```

**With Husky**

In `.husky/prepare-commit-msg` append the following line

```sh
elm-git-hooks prepare-message 'JIRA-[0-9]{4}' $1 $2
```

## Examples

This repository uses husky, you can see example usage here. Talentry uses [ClickUp](https://clickup.com/), so
out tickets IDs look like `CU-ASDF`

## LICENSE

MIT

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