global
def off_quota?(threshold: 50)
def off_quota?(threshold: 50) left = @origin.rate_limit.remaining if left < threshold @loog.info("Too much GitHub API quota consumed already (#{left} < #{threshold}), stopping") true else @loog.debug("Still #{left} GitHub API quota left (>#{threshold})") false end end