Users can now choose whether merging linked pull requests automatically closes the issue #157378
Replies: 16 comments 14 replies
-
|
Thank you @tuves & team! What a great feature. Is it possible to enable this on an organizational level by default? JFYI the image is broken, seems like it's possibly linking to a previously uploaded image on a private repository. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for implementing this! Any idea when this will be available in GitHub enterprise? |
Beta Was this translation helpful? Give feedback.
-
|
This sounds like a very useful addition, Will there be any visual indication on the issue or PR that it's linked but won't auto-close upon merge? |
Beta Was this translation helpful? Give feedback.
-
|
Great news. I couldn't find documentation in the REST nor GraphQL API, will something be done on that front? (i.e. if we need to change that setting on 100s of repositories). Thanks |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Thank you, but it should not have taken years and thousands of complaints to offer this feature. Even still, it's not yet in GH Enterprise where the primary audience for this feature exists. |
Beta Was this translation helpful? Give feedback.
-
|
What might make this much more useful is a choice of a "release" branch which is separate from the default branch, and then more in-line with the git-flow branching model (default being both are the same branch). In that scenario, PRs would automatically target the default branch as they do now, but issues won't be closed until the PR eventually gets merged into the release branch. Although this change here allows that to happen manually, it leaves you with a more manual process to close issues that will likely end with that bit being forgotten, and hard to trace. |
Beta Was this translation helpful? Give feedback.
-
|
Does this affect It would be desirable to differentiate between |
Beta Was this translation helpful? Give feedback.
-
|
This feature is not working properly, or it only works with issues linked in the default branch |
Beta Was this translation helpful? Give feedback.
-
|
This important opt out information is not included in https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue, please add at the top/beginning. |
Beta Was this translation helpful? Give feedback.
-
|
With this option turned off, I cannot get issues to close automatically, when a linked PR is merged. I added "Closes #..." to the description of the PR, but it does not work. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Linking a pull request to an issue makes it easy for collaborators to see that work for the issue is underway. Today, when a linked pull request is merged, the associated issue is automatically closed.
But for many teams, merging a PR doesn’t mean the work is done—there might be QA, validation, or follow-up steps before an issue is truly resolved. With this new repository setting, you can choose whether merging a pull request should automatically close its linked issues.
Repository admins and maintainers can manage this setting under Repository settings → General → Issues. It's enabled by default to preserve existing behavior.
This ship addresses one of our most popular Community requests--thank you for your feedback and helping make our products better together 🚀
Beta Was this translation helpful? Give feedback.
All reactions