Fix head pipeline stored in merge request for external pipelines

Kamil Trzciński requested to merge fix-head-pipeline-for-commit-status into master

What does this MR do?


We introduced head_pipeline as a value of merge_requests. This is however not updated when external pipeline is created. Thus this leads to issue described above.

I also created ~"technical debt" to fix the CommitStatus API:

Merge request reports