Creating a pull request

A pull request is opened from the branch compare page: a title, a description, and below them the commits and files that go into the merge.

Who can use this Anyone who can see both branches can open a pull request; into someone else's repository — from your fork.

Updated Copy as Markdown
In this article

From your branch#

  1. Make the changes in a separate branch — Branches.
  2. Open the comparison: Compare on the branches page or the address /{owner}/{name}/compare/main...my-branch.
  3. Check the list of commits and files below the form.
  4. Enter a title and a description. To close an issue after the merge, write Closes #number in the description.
  5. Submit the form. The pull request gets a number in the same sequence as issues.

From a fork#

A change to someone else's public repository goes through a fork: fix it in your copy and open a pull request into the source — the comparison lets you pick the fork's branch.

What the pull request page shows#

The header «wants to merge branch → main», the Conversation · Commits · Files tabs, the state («open — can be merged» or what blocks it), and on the right — reviewers, assignees, labels, milestones, linked issues. New commits pushed to the branch join the pull request by themselves.

Was this helpful?