Issue tracker resolves issue for commits in any branch

Issue #7815 duplicate
created an issue

Can this be limited only to commits to specific branches. We do not want the issues to go to closed state when the commit is pushed into a dev branch, It should be changed to closed only when it reaches master or some specified branch