-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: add generic bumpVersions option #34023
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # lib/config/options/index.ts # lib/workers/repository/update/branch/get-updated.ts
}); | ||
|
||
afterEach(() => { | ||
jest.spyOn(templates, 'compile').mockRestore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure Jest.spyOn
will reuse the last spy? 🤔 I thought it always created a new spy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the case. If I remove this line all tests after the ones which make of jest.spyOn
will fail.
let newVersion: string | null = null; | ||
try { | ||
const bumpType = compile(config.bumpType, branchConfig); | ||
newVersion = inc(version, bumpType as ReleaseType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should document that only semver is supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This documented here
Changes
Implements bumpVersions which leans the semantics of our custom managers
Context
Closes #28045
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via:
https://github.com/secustor/renovate-bump-versions