inconsistency: linking project#issue from commit works but closing doesn't
Description
In larger projects we often use groups with several repositories. When dealing with issues relevant for multiple repos we use the git commit messages to easily link them to the correct issues across repo boundaries or directly close them. Linking to commit messages works project relative (#issue), group relative (project#issue) or gitlab instance relative (group/project#issue). Closing however only works for the first and last:
Note that %{issue_ref} is a complex regular expression defined inside GitLab's source code that can match a reference to 1) a local issue (gitlab-ce#123), 2) a cross-project issue (group/project#123) or 3) a link to an issue (https://gitlab.example.com/group/project/issues/123).
In other words: there is a somewhat surprising inconsistency in the GUI to refer to another repo's issues and the closing capability.
Demo:
Say we have Group G with repos A and B, we can then link to A#1 in a commit in B, but we cannot close A#1. Actually the latter will link the commit in the interface but not trigger the closing.
- Group: https://gitlab.com/gitlab-ce-issue-demo-group/
- Issue: gitlab-ce-issue-demo-group/A#1 (not closed)
- Commit: gitlab-ce-issue-demo-group/B@f9b13edc (links to the above)
Proposal
Make this more consistent?