Currently if I create bugfix branch, for instance, and make some commit containing "fixes #1" or "closes #1" in its message, it automatically close #1 issue.
However, I would like to happen only when the pull request associated to this branch is approved and merged into the default branch (develop or master).
I cannot understand how I must configure my repository to accomplish this.