Skip to main content

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.