I typically use (and others) git commit --fixup=... which creates new commit. Then you can do git rebase -i --autosquash origin/master and it will automatically squash all such commits.
git commit --fixup=...
git rebase -i --autosquash origin/master
Since it's best way to not force-push into pull-requests, would be nice to implement this feature.
P.S. more examples at https://fle.github.io/git-tip-keep-your-branch-clean-with-fixup-and-autosquash.html
The required feature is like a github's "Squash and Merge"? [1] I want the feature too for pagure.
[1] https://github.com/blog/2141-squash-your-commits
Metadata Update from @wombelix: - Issue set to the milestone: 6.0