lib/github_labeler.rb
def is_remaining_rate_limit_sufficient?(expected_number_of_calls)
    remaining_limit = @client.rate_limit.remaining

    @logger.debug "There are #{expected_number_of_calls} API calls to be made, and the remaining API rate limit quota is #{remaining_limit}."

    return expected_number_of_calls <= @client.rate_limit.remaining
  end
#
# Checks if the remaining rate limit allows us to make the specified number of
# changes
#
Checks if the remaining rate limit allows us to make the specified number of
changes
Checks if the remaining rate limit allows us to make the specified number of changes
def is_remaining_rate_limit_sufficient?(expected_number_of_calls)
    remaining_limit = @client.rate_limit.remaining
    @logger.debug "There are #{expected_number_of_calls} API calls to be made, and the remaining API rate limit quota is #{remaining_limit}."
    return expected_number_of_calls <= @client.rate_limit.remaining
  end
def is_remaining_rate_limit_sufficient? ( expected_number_of_calls ) remaining_limit = @client . rate_limit . remaining @logger . debug "There are #{expected_number_of_calls} API calls to be made, and the remaining API rate limit quota is #{remaining_limit}." return expected_number_of_calls <= @client . rate_limit . remaining end
Checks if the remaining rate limit allows us to make the specified number of
changes
Checks if the remaining rate limit allows us to make the specified number of changes
expected_number_of_calls