-
Notifications
You must be signed in to change notification settings - Fork 206
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
fix: Merge commits should be versioned #407
fix: Merge commits should be versioned #407
Conversation
I think there is a bit of inconsistency in the current code which we need to resolve to make this fully work. In melos/packages/conventional_commit/lib/conventional_commit.dart Lines 74 to 84 in 9ea87a3
This is not part of the Conventional Commit spec. I don't think we should do that and return There are also two places in the changelog generation that need to be updated. melos/packages/melos/lib/src/common/changelog.dart Lines 213 to 214 in 9ea87a3
And merge commits get special cased (even though they will always be filtered out before 🤷), which they shouldn't be with the changes in this PR: melos/packages/melos/lib/src/common/changelog.dart Lines 173 to 176 in 9ea87a3
|
Looking around, it seems a the way people found around this problem was to add a non-capturing group to the input to the header regex as input parameter. Such as this. |
3374424
to
feaff2a
Compare
I think directly supporting prefixes like My concern is that we distinguish I've added some tests and added the changes to fix changelog generation. |
Thanks a lot 🙏 Anything else you want me to do? Happy to help if there is. |
Can we add support for bitbucket ? In bitbucket also when we try to merge PR it add this message as default. |
That commit message does not follow conventional commits. It has to include at least a |
@lohnn yes we follow conventional commit but when we try to merge bitbucket add some text from there end. |
So basically what you would need is to skip a merge header alltogether? |
@as19ish Could you open a new issue with details about how you merge commits (rebase, squash, merge), what bitbucket adds and how this breaks versioning? Let's handle that separately, since this PR is about fixing a regression. |
Thanks for merging @blaugold! |
I think we have a bunch of changes people are looking forward to. @Salakar Could you publish a new release? |
Description
Merge commits were not versioned. Example:
Merged PR 123: fix(3305): change url launcher to open externally
Fixes a regression of #258.
Me and @spydon fixed this together :)
Type of Change
feat
-- New feature (non-breaking change which adds functionality)fix
-- Bug fix (non-breaking change which fixes an issue)!
-- Breaking change (fix or feature that would cause existing functionality to change)refactor
-- Code refactorci
-- Build configuration changedocs
-- Documentationchore
-- Chore