github

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureMergeDriver

func ConfigureMergeDriver(repoRoot string) error

ConfigureMergeDriver sets the local git merge driver configuration.

func DetectOwner

func DetectOwner(run CommandRunner) (string, error)

DetectOwner resolves owner via TICK_OWNER or git config user.email.

func DetectProject

func DetectProject(run CommandRunner) (string, error)

DetectProject resolves the current git remote project via origin.

func EnsureGitAttributes

func EnsureGitAttributes(repoRoot string) error

EnsureGitAttributes adds the tick merge driver line to .gitattributes if missing.

func NormalizeID

func NormalizeID(project, input string) (string, error)

NormalizeID accepts short or global IDs and returns the short ID.

func ParseProjectFromRemote

func ParseProjectFromRemote(remote string) (string, error)

ParseProjectFromRemote extracts owner/repo from a git remote URL.

Types

type CommandRunner

type CommandRunner func(name string, args ...string) ([]byte, error)

CommandRunner executes a command and returns stdout.

Jump to

Keyboard shortcuts

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