-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getPullRequestEditedDiffRanges: use GitHub API #2679
Conversation
59dd206
to
8fcc2ef
Compare
2f17622
to
2f35487
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, a bunch of comments, but nothing major.
2f35487
to
82ea58e
Compare
82ea58e
to
ae19466
Compare
@henrymercer I have addressed all comments; PTAL. I want to thank you especially for suggesting that I add tests, because one of those tests caught a bug (incorrect path separator on Windows). I have fixed the bug in the latest force push. |
export const exportedForTesting = { | ||
getDiffRanges, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this pattern, we should use it more in the rest of the Action :)
This PR changes
getPullRequestEditedDiffRanges
so that it no longer obtains the PR diff through Git. Instead, it now obtains the PR diff through the GitHub Compare two commits API.