From c90ecaa5a164f8b3a35057976737a185625069d9 Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Mon, 8 Mar 2021 17:06:12 +0100 Subject: [PATCH] Increase default value of initial-fetch-depth to 100 For most situation it should be enough to find merge base. Previous value was too slow and overhead of doing fetch was significantly higher than saving of transfer. --- README.md | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eaa0bbc2..e78b1a05 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ For more information see [CHANGELOG](https://github.com/dorny/paths-filter/blob/ # is found or there are no more commits in the history. # This option takes effect only when changes are detected # using git against base branch (feature branch workflow). - # Default: 20 + # Default: 100 initial-fetch-depth: '' # Enables listing of files matching the filter: diff --git a/action.yml b/action.yml index 894b1149..b25aa5e2 100644 --- a/action.yml +++ b/action.yml @@ -38,7 +38,7 @@ inputs: until the merge-base is found or there are no more commits in the history. This option takes effect only when changes are detected using git against different base branch. required: false - default: '10' + default: '100' outputs: changes: description: JSON array with names of all filters matching any of changed files