I'm playing with GitHub actions and testing a commit linter on a PR (from a dummy branch called meh to master), which I managed to make it work, except that I needed to change my previous commit messages (which were already pushed at that point) in order to match the commit linter regex (which uses conventional commit).
So I went with a git rebase -i --root and reword-ed every commit since the very beginning and then I pushed the commits to my branch meh, except that when I did that the PR closed automatically, I can't reopen or create a new one (from the same branch meh to master) cause according to GitHub:
The meh branch has no history in common with master.
How can I re-open my PR?
master) tried to do agit merge mehand it told mefatal: refusing to merge unrelated histories. If a merge would fail in this way, then a pull request can't make sense.--allow-unrelated-historieswhich will allow the merge, so maybe you do that locally, commit to a new branch, push that new branch, and then do a PR from your new branch.git pull origin master --allow-unrelated-histories. Tbs, it kinda messed up the commit linter in fetching the commits. See: github.com/wagoid/commitlint-github-action/issues/…