Skip to content

Commit

Permalink
Merge 4e31e11 into 619a198
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jan 22, 2022
2 parents 619a198 + 4e31e11 commit f24d27b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function getDefaultConfig()
'number_of_concurrent_updates' => 0,
'branch_prefix' => '',
'commit_message_convention' => '',
'allow_update_indirect_with_direct' => 0,
];
}

Expand Down Expand Up @@ -71,6 +72,11 @@ public function hasConfigForKey($key)
return !empty($this->configOptionsSet[$key]);
}

public function shouldUpdateIndirectWithDirect()
{
return (bool) $this->config->allow_update_indirect_with_direct;
}

public function shouldAlwaysUpdateAll()
{
return (bool) $this->config->always_update_all;
Expand Down
7 changes: 7 additions & 0 deletions tests/fixtures/allow_indirect.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extra": {
"violinist": {
"allow_update_indirect_with_direct": "yes_of_course_this_should_be_an_int_but_this_evaluates_to_true"
}
}
}

0 comments on commit f24d27b

Please sign in to comment.