eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Add job forbid-merge-commits to .github/workflows/pull-request.yml.

Open motlin opened this issue 1 year ago • 0 comments

We recently had a "backwards" merge commit land on the master branch.

It's visible in the git history as the white arrow here.

Screenshot 2024-09-01 at 9 35 17 AM

I wrote and open sourced a GitHub Action to prevent this sort of thing. Its README has more details about why this is a problem and how folks get into this situation. When it happens, the error message is pretty helpful about how to fix up git history.

motlin avatar Sep 01 '24 13:09 motlin