An open API service indexing awesome lists of open source software.

https://github.com/leotabosa/commitlint-example

Commitlint prototyping and examples
https://github.com/leotabosa/commitlint-example

commit commitlint git hacktoberfest hacktoberfest2021 lint linting

Last synced: about 1 month ago
JSON representation

Commitlint prototyping and examples

Awesome Lists containing this project

README

          

# Instructions

Clone this repo with:

```bash

git clone git@github.com:leotabosa/commitlint-example.git

```

Install all dependencies with:

```bash

yarn install

```

Now add a file:

```bash

echo "hello" >> temp_file

```

Stage the file and commit (this should fail):

```bash

git add temp_file

git commit -m "testing"

```

Why?

```js
return [
String(header).startsWith("#"),

`${error}Commit message should start with '#NNNNN' (task number).`,
];
```

Now commit with a message matching the expected pattern:

```bash

git commit -m "#1 - Testing"

```