Skip to content

Commit

Permalink
Account for more known values of pull request "mergeable_state"
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Mar 10, 2017
1 parent 7d68ba1 commit 38ef396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gh/merge_commit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def has_merge_commit?(hash)

def github_done_checking?(hash)
case hash['mergeable_state']
when 'checking' then false
when 'unknown' then hash['merged']
when 'clean', 'dirty', 'unstable', 'stable' then true
when 'checking' then false
when 'unknown' then hash['merged']
when 'clean', 'dirty', 'unstable', 'stable', 'blocked', 'behind' then true
else fail "unknown mergeable_state #{hash['mergeable_state'].inspect} for #{url(hash)}"
end
end
Expand Down

0 comments on commit 38ef396

Please sign in to comment.