diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8221f9e6..f90dedd8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -20,7 +20,7 @@ Metrics/BlockLength: # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: - Max: 136 + Max: 137 # Offense count: 1 # Configuration parameters: IgnoredMethods. diff --git a/app/models/pull_request.rb b/app/models/pull_request.rb index 5b974464..998f17a2 100644 --- a/app/models/pull_request.rb +++ b/app/models/pull_request.rb @@ -227,6 +227,7 @@ def validate_status ensure_label_is_detached(label) update(eligible_for_ci_comment: true) when 'pending' + RefreshPullRequestWorker.perform_in(5.minutes.from_now, repository.name, number) Raven.capture_message('pending PR status', extra: { state: state, status: status, repo: repository.github_url, title: title }) true when nil