This version properly analyzes the top-most commit from the PR (without merge commit) against the correct last known commit (the one known in the PR version, not the one in the current upstream's HEAD branch, which might have changed by merging of concurrent PRs).