utils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIssueNumber

func ExtractIssueNumber(branchName string) (int, error)

ExtractIssueNumber extracts the issue number from a branch name. Branch names are typically in the format 123-branch-name.

func GenerateMilestone

func GenerateMilestone(t time.Time) string

GenerateMilestone creates a milestone string in the format YYYY.QN based on the provided time For example: 2025.Q1 for January-March, 2025.Q2 for April-June, etc.

func OpenURL

func OpenURL(url string) error

OpenURL opens a URL in the default browser

func SplitOnCommaAndWhitespace

func SplitOnCommaAndWhitespace(s string) []string

SplitOnCommaAndWhitespace splits a string on commas and trims whitespace

func TruncateAndDashCase

func TruncateAndDashCase(s string, maxLen int) string

TruncateAndDashCase converts a string to dash-case and truncates it to the specified length

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL