Skip to content

Commit

Permalink
Merge pull request #235 from bastelfreak/issue/213-pr-error
Browse files Browse the repository at this point in the history
Queue a PR refresh if CI status is pending
  • Loading branch information
Robert Müller authored Oct 1, 2020
2 parents f54e8ec + 9744bee commit d3effbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions app/models/pull_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3effbb

Please sign in to comment.