Skip to content

Commit

Permalink
feat(semver): add conventional commit template func
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoSuessgott committed Oct 7, 2024
1 parent ff87c78 commit 7c74c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ repos:
# example
- id: mdtmpl
args: [-t=examples/README.md.tmpl, -f, -o=examples/README.md]
stages: [commit-msg]
# readme
- id: mdtmpl
args: [-f]
Expand Down
4 changes: 2 additions & 2 deletions pkg/commit/commit.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package commit

import (
"fmt"
"errors"

"github.com/Masterminds/semver/v3"
"github.com/leodido/go-conventionalcommits"
Expand Down Expand Up @@ -36,5 +36,5 @@ func ParseConventionalCommit(commit []byte) (SemVerFunc, error) {
return IncPatch, nil
}

return nil, fmt.Errorf("commit is not a conventional commit")
return nil, errors.New("commit is not a conventional commit")
}

0 comments on commit 7c74c61

Please sign in to comment.