Skip to content

Commit c4e3855

Browse files
committed
format
1 parent 422c4d2 commit c4e3855

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cmd/tag-release-tui/main.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -713,37 +713,37 @@ func getNextVersion(remote string) (string, error) {
713713

714714
var versions []*semVersion
715715
lines := strings.Split(strings.TrimSpace(string(output)), "\n")
716-
716+
717717
for _, line := range lines {
718718
if line == "" {
719719
continue
720720
}
721-
721+
722722
// Parse line format: hash refs/tags/vX.Y.Z
723723
parts := strings.Fields(line)
724724
if len(parts) < 2 {
725725
continue
726726
}
727-
727+
728728
ref := parts[1]
729729
if !strings.HasPrefix(ref, "refs/tags/") {
730730
continue
731731
}
732-
732+
733733
tag := strings.TrimPrefix(ref, "refs/tags/")
734-
734+
735735
// Skip annotated tag refs (ending with ^{})
736736
if strings.HasSuffix(tag, "^{}") {
737737
continue
738738
}
739-
739+
740740
// Try to parse as semantic version
741741
version, err := parseSemanticVersion(tag)
742742
if err != nil {
743743
// Skip non-semantic version tags
744744
continue
745745
}
746-
746+
747747
versions = append(versions, version)
748748
}
749749

@@ -767,7 +767,7 @@ func getNextVersion(remote string) (string, error) {
767767
// Get latest version and increment minor
768768
latest := versions[len(versions)-1]
769769
next := latest.incrementMinor()
770-
770+
771771
return next.toString(), nil
772772
}
773773

@@ -810,7 +810,7 @@ func main() {
810810
}
811811
}
812812
}
813-
813+
814814
// Auto-generate tag from latest release
815815
fmt.Printf("No version specified. Determining next version from remote '%s'...\n", remote)
816816
var err error

0 commit comments

Comments
 (0)