You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a pull request to merge fork/candidate against origin/master, GetChanges rpc is returning golang.go and README.md.
I guess it's because DataService is fetching changes with kind of: git diff 7450de7..dd8c39e
that returns all differences between 7450de7 and dd8c39e (what is wrong)
instead of doing: git diff 7450de7...dd8c39e
that returns the differences between common ancestor (83f7e4d) and dd8c39e, representing the changes made by the branch being pullrequested.
Keeping this, forces the analyzer to avoid posting comments about files that were not modified in the PR being reviewed (ie. README.md), because otherwise GitHub API will return an unhandled Path is invalid error:
Given this history:
For a pull request to merge
fork/candidate
againstorigin/master
,GetChanges
rpc is returninggolang.go
andREADME.md
.I guess it's because
DataService
is fetching changes with kind of:git diff 7450de7..dd8c39e
that returns all differences between
7450de7
anddd8c39e
(what is wrong)instead of doing:
git diff 7450de7...dd8c39e
that returns the differences between common ancestor (
83f7e4d
) anddd8c39e
, representing the changes made by the branch being pullrequested.Keeping this, forces the analyzer to avoid posting comments about files that were not modified in the PR being reviewed (ie.
README.md
), because otherwise GitHub API will return an unhandledPath is invalid
error:(described by #487)
The text was updated successfully, but these errors were encountered: