Add API support for auto closing an issue when MR's source branch references that issue

Right now this action is only possible by using the User interface. Therefore we should make the API compatible with it.

This issue was referenced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21383

cc @dbalexandre @jramsay @DouweM

Assignee Loading
Time tracking Loading