~jacksonchen666/quick_statement_generator_for_software_version_identifier

fe65ba95792afeee8f23632c0f24f0cef407717a — Jackson Chen 2 years ago 7e2303c v1.1.1
add log on when more than 1000 releases fetched
1 files changed, 1 insertions(+), 0 deletions(-)

M fetchers.go
M fetchers.go => fetchers.go +1 -0
@@ 68,6 68,7 @@ func FetchGithub(amount int, place string) (releases *[]SourceInfo, err error) {
		case 404:
			return nil, errors.New("repository not found (github list releases api 404)")
		case 422: // response code for more than 1000 releases trying to be fetched
			log.Println("github responded with status code of trying to access too many releases than allowed (status code 422), skipping the rest")
			break // we are pretty much done here, just skip the rest
		case 403: // we _might_ be rate limited
			remaining, _ := strconv.Atoi(response.Header.Get("x-ratelimit-remaining"))