Documentation ¶
Overview ¶
Package codecov is a client to interact with codecov.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitStats ¶
type CommitStats struct {
Report Report `json:"report"`
}
CommitStats in HTTP response
type HTTPClient ¶
HTTPClient is codecov HTTP based client
func (HTTPClient) GetRepoStats ¶
func (c HTTPClient) GetRepoStats(owner string, repoName string) (*RepoStats, error)
GetRepoStats makes HTTP call to codecov and parses response
func (HTTPClient) GetRepoStatsFromGitHubURL ¶
func (c HTTPClient) GetRepoStatsFromGitHubURL(ghURL url.URL) (*RepoStats, error)
GetRepoStatsFromGitHubURL is convenience wrapper
type RepoStats ¶
type RepoStats struct { Language string `json:"language"` // e.g. "go" Branch string `json:"branch"` // e.g. "main" Name string `json:"name"` // name of repository LatestCommmit *CommitStats `json:"latest_commit"` // can be null for repos registered but no data yet RepoURL url.URL `json:"-"` // computed }
RepoStats codecov stats about single repo
Click to show internal directories.
Click to hide internal directories.