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.
In this article
From your branch#
- Make the changes in a separate branch — Branches.
- Open the comparison: Compare on the branches page or the address
/{owner}/{name}/compare/main...my-branch. - Check the list of commits and files below the form.
- Enter a title and a description. To close an issue after the merge, write
Closes #numberin the description. - 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?