• Patrick Bajao's avatar
    Fix error when cleaning up MR with no head ref · 72c84785
    Patrick Bajao authored
    When `MergeRequests::CleanupRefsService` runs on a merge request
    that has no head ref (`refs/merge-requests/:iid/head`), it throws
    a `NoMethodError` when getting the commit id.
    
    To fix it, there's ensure that we handle that case.
    72c84785
270054-fix-no-method-error.yml 99 Bytes