repodetect

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package repodetect resolves a provider.RepoCoord from the cwd's git remote. Used by the inbox flow which has a directory, not a URL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect() (provider.RepoCoord, error)

Detect resolves the current working directory's git remote into a RepoCoord. Looks at remote.origin first; falls back to the only remote if origin isn't set; errors on 0 or multiple-non-origin remotes per spec §6.

For SSH remotes whose host looks like an ssh_config alias (no dot in the host portion), Detect shells out to `ssh -G` to resolve the real hostname before returning. This requires `ssh` on PATH when such an alias is in use; canonical hosts like `git@github.com:...` skip the resolver and have no new runtime dependency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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