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 ¶
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
Click to show internal directories.
Click to hide internal directories.