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
{{ message }}
Repository navigation
Mention new "OWNER:REPO:BRANCH" pattern in "Comparing across forks" #34381
What part(s) of the article would you like to see updated?
The section Comparing across forks only mentions the OWNER:BRANCH pattern to specify a compare branch in a three-dot comparison, but recently GitHub started using a new OWNER:REPO:BRANCH pattern.
To compare branches on different repositories, preface the branch names with user names. For example, by specifying octocat:main for base and octo-org:main for compare, you can compare the main branch of the repositories respectively owned by octocat and octo-org.
The new pattern can be found in the URL of "Open pull request" pages. Such pages can be opened by visiting https://github.com/OWNER/REPO/pull/new/BRANCH or by clicking the "Open pull request" button in the page of a branch ahead of upstream default branch.
changed the title [-]Mention new "OWNER:REPO:BRANCH" form in "Comparing across forks"[/-][+]Mention new "OWNER:REPO:BRANCH" pattern in "Comparing across forks"[/+]on Aug 22, 2024
You can also preface the branch name with a user name and a repository name. For example, specifying octocat:awesome-app:main would use the main branch in the octocat/awesome-app repository. This can be useful in large organisations, where you might have an upstream repository and a fork both owned by the organisation. For more information, see "AUTOTITLE."
I've added the help wanted label so that you, or anyone else can open a PR for this update 💛
Activity
[-]Mention new "OWNER:REPO:BRANCH" form in "Comparing across forks"[/-][+]Mention new "OWNER:REPO:BRANCH" pattern in "Comparing across forks"[/+]nguyenalex836 commentedon Aug 22, 2024
@muzimuzhi Thank you for opening an issue! I'll get this triaged for review ✨
muzimuzhi commentedon Aug 22, 2024
The corresponding API docs may need a similar update, for example the doc of
baseheadpath parameter of REST API endpoint for "Compare to commits".Not sure if there are any similar GraphQL APIs.
github-actions commentedon Sep 6, 2024
Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀
github-actions commentedon Oct 5, 2024
This is a gentle bump for the docs team that this issue is waiting for technical review.
nguyenalex836 commentedon Oct 14, 2024
@muzimuzhi Thank you for your patience while our SME team reviewed! Upon review, our SMEs found we should add the following sentence to this section https://docs.github.com/en/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits#comparing-across-forks:
I've added the
help wantedlabel so that you, or anyone else can open a PR for this update 💛