Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: path to validate-commit task
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed May 17, 2021
1 parent d70dd77 commit 3d593c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -274,7 +274,7 @@ Under the hood npm package [doctoc](https://npm.im/doctoc) is used for generatin

Configures a git hook to validate the commit messages. This is great, if you want to ensure that contributors to your project must form commit messages as per a given standard.

The default standard used is [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) and rules are defined inside this [template](https://github.com/adonisjs/mrm-preset/blob/develop/validateCommit/conventional/template.md), which is copied over to your project `.github` folder for readers reference.
The default standard used is [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) and rules are defined inside this [template](https://github.com/adonisjs/mrm-preset/blob/develop/validate-commit/conventional/template.md), which is copied over to your project `.github` folder for readers reference.


<!-- TASKS END -->
2 changes: 1 addition & 1 deletion validate-commit/README.md
Expand Up @@ -2,5 +2,5 @@

Configures a git hook to validate the commit messages. This is great, if you want to ensure that contributors to your project must form commit messages as per a given standard.

The default standard used is [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) and rules are defined inside this [template](https://github.com/adonisjs/mrm-preset/blob/develop/validateCommit/conventional/template.md), which is copied over to your project `.github` folder for readers reference.
The default standard used is [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) and rules are defined inside this [template](https://github.com/adonisjs/mrm-preset/blob/develop/validate-commit/conventional/template.md), which is copied over to your project `.github` folder for readers reference.

2 changes: 1 addition & 1 deletion validate-commit/index.js
Expand Up @@ -44,7 +44,7 @@ function task () {
const commitFile = lines('.husky/commit-msg')
.add('#!/bin/sh')
.add('. "$(dirname "$0")/_/husky.sh"')
.add('HUSKY_GIT_PARAMS=$1 node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js')
.add('HUSKY_GIT_PARAMS=$1 node ./node_modules/@adonisjs/mrm-preset/validate-commit/conventional/validate.js')

const fileAlreadyExists = commitFile.exists()
commitFile.save()
Expand Down

0 comments on commit 3d593c8

Please sign in to comment.