Why Does My Destination List More Commits for a Pull Request Than GitHub?
Question
Why does my destination list more commits than GitHub for the same pull request?
Environment
Connector: GitHub
Answer
GitHub rewrites commit hash IDs when you rebase, squash, or merge a pull request. These rewritten hashes appear as new commits, even if the underlying changes are the same.
In addition, the GitHub API returns only a limited number of changes for some endpoints, which prevents us from matching rewritten hashes to their original commits.
To ensure data integrity, we sync every commit hash we receive. As a result, your destination may list more commits than GitHub shows for the same pull request.