Distinguish between if new commits are added or PR was rebased

Hi, is there any way we can distinguish between when we add new commits to a PR or it has been rebased. We currently use synchronize events, but that gets triggered for both cases, i.e. new commit added or PR rebased.