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

[Feature Request] Customize commit message by semver level of dependency update #1096

Open
zypA13510 opened this issue Jun 6, 2019 · 0 comments

Comments

@zypA13510
Copy link

Background

I'm writing an adapter for an upstream package. And in most situations, an upstream update will be considered an update of the same semver level for my adapter too (i.e. upstream feature update = feature update, upstream patch update = patch update). Also, because my package is an adapter, the upstream package is the only dependency. For me, it would be preferable if Greenkeeper can automatically select the correct "type" in commit messages, e.g. "feat:" for 5.7.0->5.8.0 update, and "fix:" for 5.7.0->5.7.1 update.

Proposal

We already have greenkeeper.commitMessages.dependencyUpdate and greenkeeper.commitMessages.devDependencyUpdate. Maybe we can add dependencyUpdateMajor, dependencyUpdateMinor and dependencyUpdatePatch to the list of configurable fields, and fallback to dependencyUpdate when any of these is not defined.
Or alternatively, allow dependencyUpdate to be an object, with key major, minor and patch.
And then Greenkeeper needs to determine the semver level of each update and use the corresponding commit message.

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

No branches or pull requests

1 participant