github

package
v0.0.0-...-5f22abe Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectRepo

func DetectRepo() string

DetectRepo attempts to parse owner/repo from the git remote origin URL. Returns empty string if detection fails.

func ParseRepoFromRemote

func ParseRepoFromRemote(remote string) string

ParseRepoFromRemote extracts owner/repo from an SSH or HTTPS git remote URL.

Types

type GitHubSource

type GitHubSource struct {
	// HTTPClient allows injecting a custom client for testing. Nil uses http.DefaultClient.
	HTTPClient *http.Client
}

GitHubSource fetches tasks from GitHub Issues.

func (*GitHubSource) FetchTasks

func (g *GitHubSource) FetchTasks(cfg sync.SourceConfig) ([]sync.ExternalTask, error)

func (*GitHubSource) Name

func (g *GitHubSource) Name() string

func (*GitHubSource) ValidateConfig

func (g *GitHubSource) ValidateConfig(cfg sync.SourceConfig) error

Jump to

Keyboard shortcuts

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