Skip to content

Commit

Permalink
feat: Add newPatch as a variable (#29341)
Browse files Browse the repository at this point in the history
  • Loading branch information
illay1994 committed May 30, 2024
1 parent cf42295 commit c09b9a7
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 0 deletions.
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

0 comments on commit c09b9a7

Please sign in to comment.