Add a CI check which fails if merge commits exist in a PR's commits
Hi, please rebase to remove the 'merge' commits
Originally posted by @david-allison in https://github.com/ankidroid/Anki-Android/issues/21413#issuecomment-5430373900
We already use 'require linear history', but it doesn't handle this case.
Hi @david-allison I'd like to work on this issue. Could you assign it to me?
Sure, cheers!
Doing this in CI seems like we're taking on a little too much risk for a check which a reviewer can make in half a second.
The implementation would be more complex than I expected it to be (I don't have much experience working with merge commits as we avoid them 😅)
I feel we should do this as a pre-push hook instead, but I'd rather focus on user-facing work.