min-commits
This action squashes the current branch to its root commit. Note, that the root commit itself is not altered, so the branch can still be diffed and merged normally.
CC0. 's 50 lines of bash