Please see [this help doc](https://help.github.com/articles/closing-issues-via-commit-messages/) for further explanation.