Skip to content

Commit d387e85

Browse files
committed
docs(predict): regexp in disabled branches
1 parent 6ec7891 commit d387e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/ruby/predict.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ PREDICT runs only the tests that are likely to fail. The subset of tests is calc
2727

2828
To enable PREDICT, set any of the following ENV variables:
2929

30-
* `KNAPSACK_PRO_PREDICT_DISABLED_ON_BRANCHES` (comma-separated list): on what branches to run all the tests
30+
* `KNAPSACK_PRO_PREDICT_DISABLED_ON_BRANCHES` (comma-separated strings or regular expressions): on what branches to run all the tests
3131
* `KNAPSACK_PRO_PREDICT_DISABLED_ON_CHANGED_FILES` ([Ruby glob](#ruby-glob)): what files, if modified, cause all the tests to run
3232
* `KNAPSACK_PRO_PREDICT_ALWAYS_RUN_TESTS` ([Ruby glob](#ruby-glob)): what tests to always run
3333

@@ -43,7 +43,7 @@ Given the dynamic nature of Ruby, PREDICT will likely not be correct 100% of the
4343
Given the following configuration on CI:
4444

4545
```bash
46-
KNAPSACK_PRO_PREDICT_DISABLED_ON_BRANCHES='main,staging' \
46+
KNAPSACK_PRO_PREDICT_DISABLED_ON_BRANCHES='main,staging,/release-.*/i' \
4747
KNAPSACK_PRO_PREDICT_DISABLED_ON_CHANGED_FILES='{Gemfile,Gemfile.lock}' \
4848
KNAPSACK_PRO_PREDICT_ALWAYS_RUN_TESTS='spec/features/**/*_spec.rb' \
4949
bundle exec rake "knapsack_pro:queue:rspec"

0 commit comments

Comments
 (0)