Skip to content
Snippets Groups Projects
Commit 59e5f470 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Check if GitHub rate limite API was reached before update Webhooks

parent 3fd0b364
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -146,6 +146,7 @@ module Gitlab
 
def update_webhooks(hooks, options)
hooks.each do |hook|
sleep rate_limit_sleep_time if rate_limit_exceed?
client.edit_hook(repo, hook.id, hook.name, hook.config, options)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment