util

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorInitials

func AuthorInitials(name string) string

AuthorInitials returns initials for an author name.

func GitURLToWebURL

func GitURLToWebURL(gitURL string) string

GitURLToWebURL converts a git remote URL to a web URL. Handles both SSH (git@github.com:user/repo.git) and HTTPS (https://github.com/user/repo.git) formats.

func SanitizePRURL

func SanitizePRURL(raw string) (string, error)

SanitizePRURL validates and normalises a pull request URL.

Types

type CommitMeta

type CommitMeta struct {
	SHA     string
	Author  string
	Email   string
	Date    string
	Subject string
	Body    []string
}

CommitMeta is parsed commit metadata from a log entry.

func ParseCommitMeta

func ParseCommitMeta(raw string) CommitMeta

ParseCommitMeta parses a raw commit metadata string into its fields.

Jump to

Keyboard shortcuts

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