Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvGithubToken Name of environment variable for github token EnvGithubToken = "GITHUB_TOKEN" // EnvPullRequestID Name of environment variable for pull request url EnvPullRequestID = "CIRCLE_PULL_REQUEST" // EnvRepoName Name of environment variable for GitHub repo EnvRepoName = "CIRCLE_PROJECT_REPONAME" // EnvRepoOwner Name of environment variable for GitHub owner EnvRepoOwner = "CIRCLE_PROJECT_USERNAME" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
LogFile string
TagID string
RepoName string
RepoOwner string
GithubToken string
PullRequest int
DeleteComment bool
}
AppConfig application configuration initialized by cobra arguments or environment variabels
type ValidationError ¶ added in v1.1.2
ValidationError indicated a missing configuration either CLI argument or environment variable
func (*ValidationError) Error ¶ added in v1.1.2
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.