Update: This is now possible as of 11.4, see https://docs.gitlab.com/ee/ci/yaml/#ruleschanges
Original post:
There's not currently any way to trigger a build in GitLab CI conditionally based on which files have been edited.
I've thought about this feature myself before, and I think it could be very useful for a number of different use cases.
The closest issue I could find for this is https://gitlab.com/gitlab-org/gitlab-ce/issues/23010
Anyway, to answer your question:
You can't really do this right now – even manually – since there's no way to determine if a merge request has changed a file or not since CI has no concept of a merge request.
Pipelines "understanding" what Merge Requests are should be added sometime soon.