Skip to main content

此版本的 GitHub Enterprise Server 已于以下日期停止服务 2025-04-03. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Managing the automatic closing of issues in your repository

You can select whether merged linked pull requests will auto-close your issues.

谁可以使用此功能?

Repository administrators and maintainers can configure the automating closing of issues in the repository, once related pull requests are merged.

About auto-closing issues

By default, merging a linked pull request automatically closes the associated issue. You can override the default behavior by disabling auto-closing.

Enabling or disabling auto-closing of issues

  1. 在 GitHub 上,导航到存储库的主页面。

  2. 在存储库名称下,单击 “设置”。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

    存储库标头的屏幕截图,其中显示了选项卡。 “设置”选项卡以深橙色边框突出显示。

  3. Under General, scroll down to the Issues section.

  4. Select or deselect Auto-close issues with merged linked pull requests to enable or disable auto-closing.