Mention new "OWNER:REPO:BRANCH" pattern in "Comparing across forks" #34381
Labels
content
This issue or pull request belongs to the Docs Content team
needs SME
This proposal needs review from a subject matter expert
pull requests
Content related to pull requests
waiting for review
Issue/PR is waiting for a writer's review
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits#comparing-across-forks
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 acompare
branch in a three-dot comparison, but recently GitHub started using a newOWNER:REPO:BRANCH
pattern.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.For example,
muzimuzhi:docs:gh34381-update-basehead-form
pattern.Additional information
The old form
OWNER:BRANCH
still works, though I don't know which one is preferable by the GitHub.For example, https://github.com/github/docs/compare/main...muzimuzhi:gh34381-update-basehead-form?expand=1 still works.
The text was updated successfully, but these errors were encountered: