dynamoid
https://github.com/veraticus/dynamoid
Ruby ORM for Amazon's DynamoDB
MergeRequestDiff#fallback_diff_refs
MRs created before 8.4 don't store their true diff refs (start and base), but we need to get a commit SHA for the "View file @ ..." link by a file, so we use an approximation of the diff refs if we can't get the actual one. These will not be the actual diff refs if the target branch was merged into the source branch after the merge request was created, but it is good enough for the specific purpose of linking to a commit. It is not good enough for highlighting diffs, so we can't simply pass these as `diff_refs.`
Edit
git clone [email protected]:veraticus/dynamoid.git
cd dynamoid
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MergeRequestDiff-fallback_diff_refs-for-pr
# Commit to gitgit add git commit -m "better docs for MergeRequestDiff#fallback_diff_refs"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MergeRequestDiff-fallback_diff_refs-for-pr
hub pull-request
# Celebrate!