Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ jobs:
- `files_to_ignore`: Whitespace or newline separated list of files to ignore when calculating the PR size, regex match is supported.
### files_to_ignore Example:
```yml
files_to_ignore: 'package-lock.json *.lock'
files_to_ignore: 'package-lock\.json .*\.lock'
# OR
files_to_ignore: |
"package-lock.json"
"*.lock"
"docs/*"
"package-lock\.json"
".*\.lock"
"docs/.*"
```
## 🤔 Basic concepts or assumptions

Expand Down
2 changes: 1 addition & 1 deletion src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ github::calculate_total_modifications() {
if [ -z "$file_to_ignore" ]; then
continue
fi
if [[ "$(jq::base64 '.filename')" == $file_to_ignore ]]; then
if [[ "$(jq::base64 '.filename')" =~ $file_to_ignore ]]; then
ignore_file=1
fi
done
Expand Down