Tagging issues in commit messages
When a commit is related to an issue, a tag can be added at the end of the commit message to reference it:
Issue: #Nif the commit addresses part of the issue number N, or is related in some way to it.
Closes: #Nif the commit fixes the issue.
Note that Gogs does not understand (yet?) the syntax of the tags, so the issue will still have to be closed by hand (but it will detect that the issue is referenced by the commit and add a back reference on the issue's page).