Linking an issue to a pull request with Closes #number so it closes on merge

The guide explains how to connect an issue and a pull request so the issue closes automatically when the pull request is merged. Writing a supported English keyword such as Closes followed by the issue number in the pull request title or description creates the link. The example uses issue #4 in the repository xlliu/test-pr-example, which is linked by pull request #9. Issue and pull request numbers are counted separately within each repository, so the number must refer to the correct item. The author recommends placing the keyword in the pull request description and refreshing the page to confirm that both sides show the link.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in