Skip to content

Commit

Permalink
Merge pull request #179 from cbosdo/pending-fix
Browse files Browse the repository at this point in the history
Stop the test if it already in pending state
  • Loading branch information
srbarrios authored Sep 29, 2022
2 parents 6de3424 + 13575a5 commit 1bb2626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitarro/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def reviewed_pr?(comm_st, pr)
# if PR status is not on pending and the context is not set,
# we dont run the tests
return false unless context_present?(comm_st) == false ||
pending_pr?(comm_st)
pending_pr?(comm_st) == false
return false unless pr_all_files_type(pr.number, @file_type).any?

print_test_required
Expand Down

0 comments on commit 1bb2626

Please sign in to comment.