github_repos_compare_commits
Compare two Git refs or branches to see commits, ahead/behind status, and changed files, including across forks for pull request reviews.
Instructions
Compare two refs and get what is in one and not the other: the status, how far ahead or behind, the commits and the changed files. basehead is one string, 'main...my-feature', with three dots. Across forks, prefix each side with its owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | The page number of the results to fetch. Defaults to 1. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. | |
| perPage | No | The number of results per page (max 100). Defaults to 30. | |
| basehead | Yes | The base and head to compare, as `BASE...HEAD` — for example `main...my-feature`. Across repositories in the same network, prefix each side with its owner: `octocat:main...contributor:fix`. |