How to add a label if the update is within the constraints of a package definition file? #33896
Unanswered
Flo0807
asked this question in
Request Help
Replies: 1 comment 4 replies
-
What would you expect if a branch contained both types of updates (within constraints, and outside constraints)? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
A Mend.io-hosted app
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
Hey!
I use Renovate to keep dependencies of an Elixir library up to date.
For new releases of the library, I use a feature of GitHub to automatically generate release notes.
The release notes include a "Dependency Updates" section. This section contains all Pull Request that are labeled with
dependency
. The labels are added by Renovate.I also have a
ignore-for-release
label I can put on Pull Requests that should be hidden from the release notes.My question is, how can I add this
ignore-for-release
label to Renovate Pull Requests where the dependency update is within the constraints of a package definition file (in my casemix.exs
).I want to exclude these updates because they do not affect users of the library because the lock file itself is not shipped.
For example, if the
mix.exs
contains the following dependencies:(Explanation of the
~>
requirement: https://hexdocs.pm/elixir/1.18.2/Version.html#module-requirements)and Renovate creates the following updates
The Pull Request of
dep_a
should be labeled withignore-for-release
because it doesn't update themix.exs
as the update is within the constraints of themix.exs
file.In contrast, the Pull Request of the
dep_b
update updates themix.exs
to this, as we need to update the constraints to use the new version:As we've updated the
dep_b
dependency in themix.exs
file, this Pull Request should not be labeled withignore-for-release
because the update has to be part of the upcoming release notes as it impacts users of the library.Note that the definition of
dep_a
did not change in themix.exs
file.FYI: Currently, I use the
update-lockfile
strategy for Mix updatesHow can I create a
packageRule
that adds theignore-for-release
label accordingly?Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions