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. You can also use closing keywords in a commit message. To unlink an issue that you linked using a keyword, you must edit the pull request description to remove the keyword. Only manually linked pull requests can be manually unlinked. Resolves #10, resolves #123, resolves octo-org/octo-repo#100 The syntax for closing keywords depends on whether the issue is in the same repository as the pull request. Merging the referencing pull request also closes 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. 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. For more information about the default branch, see " Changing the default branch." Linking a pull request to an issue using a keyword When you merge a linked pull request into the default branch of a repository, its linked issue is automatically closed. When you link a pull request to the issue the pull request addresses, collaborators can see that someone is working on the issue. You can link an issue to a pull request manually or using a supported keyword in the pull request description. If you want to link a pull request to an issue using a keyword, the PR must be on the default branch. However, if the PR's base is any other branch, then these keywords are ignored, no links are created and merging the PR has no effect on the issues. Note: The special keywords in a pull request description are interpreted when the pull request targets the repository's default branch.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |