You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Linking a pull request to an issue
3
-
intro: You can link a pull request to an issue to show that a fix is in progress and to automatically close the issue when the pull request is merged.
3
+
intro: You can link a pull request {% ifversion link-existing-branches-to-issue %}or branch {% endif %}to an issue to show that a fix is in progress and to automatically close the issue when the pull request {% ifversion link-existing-branches-to-issue %}or branch {% endif %} is merged.
@@ -60,9 +60,9 @@ Only manually linked pull requests can be manually unlinked. To unlink an issue
60
60
61
61
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.
62
62
63
-
## Manually linking a pull request to an issue
63
+
## Manually linking a pull request to an issue using the pull request sidebar
64
64
65
-
Anyone with write permissions to a repository can manually link a pull request to an issue.
65
+
Anyone with write permissions to a repository can manually link a pull request to an issue from the pull request sidebar.
66
66
67
67
You can manually link up to ten issues to each pull request. The issue and pull request must be in the same repository.
68
68
@@ -78,6 +78,28 @@ You can manually link up to ten issues to each pull request. The issue and pull
78
78
5. Click the issue you want to link to the pull request.
79
79

80
80
81
+
{% ifversion link-existing-branches-to-issue %}
82
+
83
+
## Manually linking a pull request or branch to an issue using the issue sidebar
84
+
85
+
Anyone with write permissions to a repository can manually link a pull request or branch to an issue from the issue sidebar.
86
+
87
+
You can manually link up to ten issues to each pull request. The issue can be in a different repository than the linked pull request or branch. Your last selected repository will be remembered
88
+
89
+
{% data reusables.repositories.navigate-to-repo %}
90
+
{% data reusables.repositories.sidebar-issues %}
91
+
3. In the list of issues, click the issue that you'd like to link a pull request or branch to.
92
+
4. In the right sidebar, click **Development**.
93
+

94
+
5. Click the repository containing the pull request or branch you want to link to the issue.
95
+

96
+
6. Click the pull request or branch you want to link to the issue.
97
+

0 commit comments