We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13cd7c1 commit 187bd58Copy full SHA for 187bd58
.github/tests/test/script_test.rb
@@ -12,7 +12,7 @@ def setup
12
13
def test_deny_merge_tmp
14
actual = @obj.rules_required_pull_request_reviews('tmp')
15
- pull_request_rules = @obj.get_branch_ruleset('main').select { |rule| rule['type'] == 'pull_request' }
+ pull_request_rules = @obj.get_branch_ruleset('main')['rules'].select { |rule| rule['type'] == 'pull_request' }
16
puts pull_request_rules
17
puts ##########
18
assert_not_nil(actual, 'We should not allow merge to main branch without PR')
0 commit comments