Compare commits
No commits in common. "0e0b60fe682e21c570a36d83202709ab726bc749" and "92e80143000da23c62c07826f5e3a5b67ed1d909" have entirely different histories.
0e0b60fe68
...
92e8014300
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,19 +1,5 @@
|
|||
# CHANGELOG
|
||||
|
||||
## v1.21.0 (2023-12-25)
|
||||
|
||||
### Added
|
||||
|
||||
- feat(convention): allow type, scope has digit (2023-12-25)
|
||||
|
||||
### Others
|
||||
|
||||
- chore: add go fix (2023-12-21)
|
||||
|
||||
- build: bump go 1.20 (2023-12-21)
|
||||
|
||||
- chore(changelog): generate v1.20.5 (2023-12-21)
|
||||
|
||||
## v1.20.5 (2023-12-21)
|
||||
|
||||
### Others
|
||||
|
|
|
@ -34,12 +34,6 @@ func TestNewCommit(t *testing.T) {
|
|||
Message: "feat(lang): add polish language",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Commit message with scope",
|
||||
c: git.Commit{
|
||||
Message: "feat(bump00): allow bump minor",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Uppercase",
|
||||
c: git.Commit{
|
||||
|
|
|
@ -20,8 +20,7 @@ const (
|
|||
var (
|
||||
ErrEmptyCommit = errors.New("empty commit")
|
||||
|
||||
// Self build
|
||||
headerRegex = regexp.MustCompile(`(?P<type>[a-zA-Z0-9]+)(?P<scope>\([a-zA-Z0-9]+\))?(?P<attention>!)?:\s(?P<description>.+)`)
|
||||
headerRegex = regexp.MustCompile(`(?P<type>[a-zA-Z]+)(?P<scope>\([a-zA-Z]+\))?(?P<attention>!)?:\s(?P<description>.+)`)
|
||||
)
|
||||
|
||||
type OptionFn func(*Commit) error
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"RawHeader": "feat(bump00): allow bump minor (0001-01-01)",
|
||||
"Type": "feat",
|
||||
"Scope": "bump00"
|
||||
}
|
Loading…
Reference in New Issue