Skip to content

Commit

Permalink
Merge pull request #182 from voxpupuli/fix-validation
Browse files Browse the repository at this point in the history
fix validation
  • Loading branch information
bastelfreak authored May 10, 2020
2 parents 80d95ce + 8fa8202 commit 0804017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pull_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def validate(saved_changes)
# To prevent loops, we filter `saved_changed` of those attributes and won't create new job if those are the only changed attributes
def queue_validation
attributes = %w[eligible_for_merge_comment eligible_for_ci_comment]
return unless [saved_changes.keys & attributes].empty?
return unless (saved_changes.stringify_keys.keys & attributes).empty?

ValidatePullRequestWorker.perform_async(id, saved_changes)
end
Expand Down

0 comments on commit 0804017

Please sign in to comment.