Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: allow for only including Merge Commits for versioning and Changelogs #697

Open
1 task done
timcreatedit opened this issue Apr 14, 2024 · 1 comment
Open
1 task done

Comments

@timcreatedit
Copy link

Is there an existing feature request for this?

  • I have searched the existing issues.

Command

No response

Description

I would love to be able to set up Melos such that only merge commits are considered for changelog and versioning, so that each PR can become one entry in the changelog, but all inbetween commits are retained in the git history.

Reasoning

Lots of people use squash merges in their repos so that not every single commit on the branch is included on main and in the changelog generated by Melos. However, squash merging can introduce a lot of headaches, especially if many features are worked on at the same time. That's why I (and many teams) prefer normal merge commits.

Additional context and comments

No response

@spydon
Copy link
Collaborator

spydon commented Apr 14, 2024

Doesn't it work if you don't add conventional commit tags to the commits within the PR and only have them on the merge commit?
Related PR: #407

To only use merge commits for changelog and versioning and not the conventional commits within the PR I feel might be a bit outside of the scope of Melos. If not a lot of people want it of course, but you're the first one I hear that would want this, since usually you want to have all conventional commits in the changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants