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

feat: Add newPatch as a variable #29341

Merged
merged 4 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/modules/manager/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface LookupUpdate {
newDigest?: string;
newMajor?: number;
newMinor?: number;
newPatch?: number;
newName?: string;
newValue?: string;
semanticCommitType?: string;
Expand Down
2 changes: 2 additions & 0 deletions lib/util/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export const allowedFields = {
'The major version of the new version. e.g. "3" if the new version if "3.1.0"',
newMinor:
'The minor version of the new version. e.g. "1" if the new version if "3.1.0"',
newPatch:
'The patch version of the new version. e.g. "0" if the new version if "3.1.0"',
newName:
'The name of the new dependency that replaces the current deprecated dependency',
newValue:
Expand Down
1 change: 1 addition & 0 deletions lib/workers/repository/process/lookup/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export async function generateUpdate(
}
update.newMajor = versioning.getMajor(newVersion)!;
update.newMinor = versioning.getMinor(newVersion)!;
update.newPatch = versioning.getPatch(newVersion)!;
// istanbul ignore if
if (!update.updateType && !currentVersion) {
logger.debug({ update }, 'Update has no currentVersion');
Expand Down
Loading