feature: Add support for ignoring files (#9) #33
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The code basically does what has been described / discussed in issue #9:
files_to_ignore
)files_to_ignore
is empty, the old code will be used (see below for the rationale behind this!)files_to_ignore
is given, it will loop through the list of files and count thechanges
Plus: Minor modifications:
message_if_xl
parameter description to README.mdNote however that my code does have its LIMITATIONS and should be tested by someone else too:
files_to_ignore
is global, i.e., filenames will be ignored in every part of the repositoryI can live with that limitation due to the fact that we don't open PRs with hundreds of changed files, but this is the reason why my code will fall back to the old code if
files_to_ignore
is empty: to ensure that someone not using the new parameter does not have this limitation at all and falls back to the API endpoint without/files
at the end.