Skip to content

Commit 960916e

Browse files
fix: remove old pattern messages
1 parent 6266ce2 commit 960916e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/git/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (g *GitVersioning) commitChanges(newReleaseVersion string) error {
301301

302302
signature := &object.Signature{Name: g.mostRecentCommit.AuthorName, Email: g.mostRecentCommit.AuthorEmail, When: time.Now()}
303303

304-
message := fmt.Sprintf("type: [skip]: message: Commit automatically generated by Semantic Release. The new tag is %s", newReleaseVersion)
304+
message := fmt.Sprintf("skip: Commit automatically generated by Semantic Release. The new tag is %s", newReleaseVersion)
305305
commit, err := worktree.Commit(message, &git.CommitOptions{Author: signature, Committer: signature})
306306
if err != nil {
307307
return err

src/semantic/semantic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (s *Semantic) CommitLint() error {
130130
areThereWrongCommits := false
131131
for _, commit := range commitHistoryDiff {
132132
if !s.commitMessageManager.IsValidMessage(commit.Message) {
133-
s.log.Error(colorRed+"commit message "+colorYellow+"( %s )"+colorRed+" does not meet semantic-release pattern "+colorYellow+"( type: [commit type], message: message here.)"+colorReset, strings.TrimSuffix(commit.Message, "\n"))
133+
s.log.Error(colorRed+"commit message "+colorYellow+"( %s )"+colorRed+" does not meet semantic-release pattern "+colorYellow+"(type(scope?): message here.)"+colorReset, strings.TrimSuffix(commit.Message, "\n"))
134134
areThereWrongCommits = true
135135
}
136136
}

0 commit comments

Comments
 (0)