Documentation
¶
Index ¶
- func Contains(s, substring string) bool
- func CreateSCMProvider(repoInfo *SharedRepoInfo) (services.SCMProvider, error)
- func ExtractIssueNumber(branchName string) (int, error)
- func GenerateMilestone(t time.Time) string
- func GetReadyLabel(cfg *config.Settings, repo *config.Repository, overrideLabel string) string
- func HandleLabelOperation(operation LabelOperation, overrideLabel string) error
- func OpenURL(url string) error
- func SplitOnCommaAndWhitespace(s string) []string
- func TruncateAndDashCase(s string, maxLen int) string
- type LabelOperation
- type SharedRepoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSCMProvider ¶ added in v0.4.0
func CreateSCMProvider(repoInfo *SharedRepoInfo) (services.SCMProvider, error)
CreateSCMProvider creates the appropriate SCM provider for the repository
func ExtractIssueNumber ¶
ExtractIssueNumber extracts the issue number from a branch name. Branch names are typically in the format 123-branch-name.
func GenerateMilestone ¶
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 GetReadyLabel ¶ added in v0.4.0
GetReadyLabel returns the appropriate ready label for the repository
func HandleLabelOperation ¶ added in v0.4.0
func HandleLabelOperation(operation LabelOperation, overrideLabel string) error
HandleLabelOperation handles adding or removing labels from an issue
func SplitOnCommaAndWhitespace ¶
SplitOnCommaAndWhitespace splits a string on commas and trims whitespace
func TruncateAndDashCase ¶
TruncateAndDashCase converts a string to dash-case and truncates it to the specified length
Types ¶
type LabelOperation ¶ added in v0.4.0
type LabelOperation int
LabelOperation represents the type of label operation
const ( AddLabel LabelOperation = iota RemoveLabel )
type SharedRepoInfo ¶ added in v0.4.0
type SharedRepoInfo struct {
}
SharedRepoInfo holds information about a selected repository and related data
func SelectSharedRepository ¶ added in v0.4.0
func SelectSharedRepository() (*SharedRepoInfo, error)
SelectSharedRepository determines which repository to work with using shared logic