Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WellKnownTokenVarNames lists known env var names for Github related tokens WellKnownTokenVarNames = []string{"GITHUB_TOKEN", "GH_TOKEN", "NPM_TOKEN"} )
Functions ¶
func NewClient ¶
NewClient conveniently creates a client connection to the Github API based on an already authenticated http client connection
If the authenticated client is not provided, a new client will be created by calling [NewOAuthClient] trying to find tokens in [WellKnownGithubTokenVarNames]
Providing a parameter for gccf would allow creating the github client with a customized function
Types ¶
Click to show internal directories.
Click to hide internal directories.