Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style guide fixes to linking-a-pull-request-to-an-issue.md #17427

Merged
merged 3 commits into from
May 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ When you merge a linked pull request into the default branch of a repository, it

## Linking a pull request to an issue using a keyword

You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message (please note that the pull request must be on the default branch).
You can link a pull request to an issue by using a supported keyword in the pull request's description or in a commit message. The pull request ***must be*** on the default branch.
mchammer01 marked this conversation as resolved.
Show resolved Hide resolved

* close
* closes
Expand All @@ -46,7 +46,7 @@ You can link a pull request to an issue by using a supported keyword in the pull
* resolves
* resolved

If you use a keyword to reference a pull request comment in another pull request, the pull requests will be linked. Merging the referencing pull request will also close the referenced pull request.
If you use a keyword to reference a pull request comment in another pull request, the pull requests will be linked. Merging the referencing pull request also closes the referenced pull request.

The syntax for closing keywords depends on whether the issue is in the same repository as the pull request.

Expand All @@ -60,7 +60,6 @@ Multiple issues | Use full syntax for each issue | `Resolves #10, resolves #123,

You can also use closing keywords in a commit message. The issue will be closed when you merge the commit into the default branch, but the pull request that contains the commit will not be listed as a linked pull request.


{% ifversion fpt or ghes or ghae or ghec %}
## Manually linking a pull request to an issue

Expand Down