github

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

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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