Add matchReleaseAge matcher #31097
mzglinski
started this conversation in
Suggest an Idea
Replies: 3 comments 7 replies
This comment has been hidden.
This comment has been hidden.
-
Can you give some examples of realistic new packageRules you'd use it with? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Of course, modifying the above example to achieve my desired outcome, would look like this {
"extends": ["config:base", "github>whitesource/merge-confidence:beta"],
"branchConcurrentLimit": 5,
// wait for 3 days before creating any pr
"minimumReleaseAge": "3 days",
"packageRules": [
// group older packages into single MR
{
"matchCurrentAge": "> 1 month",
"matchReleaseAge ": "> 14 days",
"matchUpdateTypes": ["major", "minor", "patch", "digest"],
"groupName": "outdated dependencies"
},
],
"platformAutomerge": true,
"prConcurrentLimit": 3,
"prHourlyLimit": 1,
"rebaseWhen": "behind-base-branch"
} With this configuration renovate will
With this approach, I will be able to reduce the number of "forgotten" PR's, free CI resources and allow other packages to be updated in the meantime (notice |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal
I propose adding a
matchReleaseAge
matcher, similar in functionality tomatchCurrentAge
. This matcher would align closely withminimumReleaseAge
but serve a different purpose.I previously submitted a PR for this feature, which I can rebase and reopen if this proposal is approved: #30359.
Why?
This feature is aimed at reducing unnecessary noise and resource usage. In my organization, it's required that all PRs remain up-to-date with the default branch. However, if a PR is left unattended by the repository owner, it gets continuously updated every time changes are pushed to the default branch. This results in constant notifications and excessive consumption of CI resources. The proposed rule would allow us to bundle "forgotten" dependencies into a single PR, which can be addressed at the owner's convenience.
Simultaneously, I want Renovate to create a dedicated PR for new releases of older packages, giving developers the option to update a single package if needed.
Here’s the logic I want to implement:
minimumReleaseAge
) but younger than 14 days.Why not use
minimumReleaseAge
?In my original PR it was suggested to use
minimumReleaseAge
as follows:While minimumReleaseAge nearly meets my requirements, it doesn’t create new, separate PRs when a new version of an older package is released. Instead, Renovate waits 14 days before creating a PR in the "outdated dependencies" group. This behavior doesn’t fully align with the intended functionality of creating timely, individual PRs for newly released versions.
Beta Was this translation helpful? Give feedback.
All reactions