feat(get-changed-files): include original location for renamed files in response #674
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.
📝 Description
when files are renamed with no changes, github doesn't treat the change as an
addition
+ adeletion
, it treats it as one singularrenamed
object. this isn't the most helpful in a monorepo setting, where we may have a file moved (renamed) from one package to another, in which case we'd want to test both packages, not just the one the file was moved into.this change pulls in all
previous_filename
fields on files that have beenrenamed
to append to the full list. that object coming back from the GH API/octokit looks like:to test: i've added a case to the test file to account for this 🙂