prref

package
v0.10.257 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package prref parses and normalizes pull-request references.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGitHubPullURL

func ParseGitHubPullURL(raw string) (gitprovider.PRRef, error)

ParseGitHubPullURL parses the v1 GitHub pull-request URL form.

func SameHost

func SameHost(left, right string) bool

SameHost reports whether two host strings identify the same host.

func ShortSHA added in v0.10.231

func ShortSHA(sha string) string

ShortSHA returns the SHA trimmed of surrounding whitespace and truncated to 12 characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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