githubgithub-actions

How to prevent GitHub project Issue to close automatically when pull request is merged/closed?


I'm using the board of a Project (new) in GitHub. When I have an Issue within a Pull Request linked to it and I close the Pull Request (using GitHub button at the bottom of the pull request page) the Issue is also closed.
I don't want this behavior, also if that is the only PR on the Issue.

I tried to change the project Workflow settings removing the "pull request" "is:closed" trigger:

enter image description here

Initial state: both Issue and PR are open:
enter image description here

Merge the PR to master: enter image description here

Result:
enter image description here

Also the Issue is closed !! enter image description here


Solution

  • There is now an option in the repository settings to configure the auto-close behavior:

    https://github.blog/changelog/2025-04-23-users-can-now-choose-whether-merging-linked-pull-requests-automatically-closes-the-issue/

    enter image description here