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.
Problem
See #66, to get the list of changed files we are currently merging all the changed files of each new commit, even if in the end the file didn't change at all compared to the base branch/ref.
Two examples where this can happen:
In both cases, these files actually haven't been changed compared to the base branch (usually current CKAN-meta/NetKAn master). So we don't need to include them in our validation.
Changes
Now instead of iterating over each commit and adding all the changes of the diff of each commit together, we get the total/final diff and extract the changed files from that one.
I've tested this using the following PoC code:
test.py
:Terminal:
Output:
Fixes #66