mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-07 10:17:02 +00:00
feat: analyze commits for conventional commit messages
This commit is contained in:
parent
74ea8fba17
commit
78f4368018
5 changed files with 203 additions and 1 deletions
|
|
@ -65,11 +65,17 @@ func run(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
for _, commit := range commits {
|
||||
analyzedCommits, versionBump, err := rp.AnalyzeCommits(commits)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, commit := range analyzedCommits {
|
||||
title, _, _ := strings.Cut(commit.Message, "\n")
|
||||
fmt.Printf("%s %s\n", commit.Hash, title)
|
||||
}
|
||||
fmt.Printf("Previous Tag: %s\n", previousTag.Name)
|
||||
fmt.Printf("Recommended Bump: %v\n", versionBump)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue