• Douglas Barbosa Alexandre's avatar
    Fix attr reader to force the intended values for source and target shas · 5b4ceeed
    Douglas Barbosa Alexandre authored
    When importing a pull request from GitHub, the old and new branches may
    no longer actually exist by those names, but we need to recreate the
    merge request diff with the right source and target shas.
    
    We use these `target_branch_sha` and `source_branch_sha` attributes to
    force these to the intended values. But the reader methods were always
    looking up to the target/source branch head instead of check if these
    values was previously set.
    5b4ceeed
merge_request.rb 18.2 KB