Skip to content

Commit

Permalink
Merge 265c4ce into f21b2b0
Browse files Browse the repository at this point in the history
  • Loading branch information
jocgir committed Sep 24, 2019
2 parents f21b2b0 + 265c4ce commit 7fe7a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ func (config *TGFConfig) LogDebug(format string, args ...interface{}) {

// GetUpdateVersion fetches the latest tgf version number from the GITHUB_API
func (config *TGFConfig) GetUpdateVersion() (string, error) {
if config.UpdateVersion != "" {
// The target version number has been specified in the configuration to avoid
// hammering GitHub
return config.UpdateVersion, nil
}
resp, err := http.Get("https://api.github.com/repos/coveooss/tgf/releases/latest")
if err != nil {
return "", err
Expand Down

0 comments on commit 7fe7a3f

Please sign in to comment.