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

docs: document that updateTypes: ['patch'] only works/matches if separateMinorPatch is set to true #7628

Merged
merged 7 commits into from Nov 4, 2020

Conversation

casdevs
Copy link
Contributor

@casdevs casdevs commented Nov 2, 2020

Changes:

update config definitions

Context:

I noticed that updateTypes: ['patch'] only matches patch updates if separateMinorPatch is set to true.
This comes somewhat unexpected and does not seem to be documented anywhere at the moment, as opposed to the documentation of the patch setting, where the docs correctly state Only applies if separateMinorPatch is set to true.

Maybe related to #2818

But without reading the docs, I would expect updateTypes: ['patch'] to always match on patch updates (e.g. 1.0.0 to 1.0.1) anyway, regardless of the separateMinorPatch setting (which is only set if we want separate PRs or branches for patch AND minor updates)

Docs should be updated accordingly.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

I noticed that `updateTypes: ['patch']` only matches if `separateMinorPatch` is set to true.
This comes somewhat unexpected and does not seem to be documented anywhere at the moment, as opposed to the documentation of the `patch` setting, where the docs correctly state `Only applies if separateMinorPatch is set to true`.

Maybe related to renovatebot#2818

But without reading the docs, I would expect `updateTypes: ['patch']` to always match on patch updates (e.g. 1.0.0 to 1.0.1) regardless of the `separateMinorPatch` setting (which is only set if we want separate PRs or branches for patch AND minor updates)
@casdevs casdevs changed the title Update definitions.ts Document that updateTypes: ['patch'] only works/matches if separateMinorPatch is set to true Nov 2, 2020
@casdevs casdevs changed the title Document that updateTypes: ['patch'] only works/matches if separateMinorPatch is set to true docs: document that updateTypes: ['patch'] only works/matches if separateMinorPatch is set to true Nov 2, 2020
viceice
viceice previously approved these changes Nov 2, 2020
@JamieMagee
Copy link
Contributor

JamieMagee commented Nov 4, 2020

Were the docs for this already updated? Cause I'm seeing this change live at https://docs.renovatebot.com/configuration-options/#patch

EDIT: My mistake. I just search for this text on the docs site, saw it was there, but didn't realise it under patch, not updateTypes.

Comment on lines 1271 to 1276
Update type `patch` only matches if `separateMinorPatch` is set to true.

## patch

Add to this object if you wish to define rules that apply only to patch updates.
See also `major` and `minor` configuration options.
Only applies if `separateMinorPatch` is set to true.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to update definition.ts and configuration-options.md. The docs that get deployed are a combination of both. You can see by taking a look at the patch section online, which reads:

Configuration to apply when an update type is patch. Only applies if separateMinorPatch is set to true

lib/config/definitions.ts Outdated Show resolved Hide resolved
lib/config/definitions.ts Outdated Show resolved Hide resolved
@rarkins rarkins merged commit 9a92e92 into renovatebot:master Nov 4, 2020
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 23.68.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

viceice pushed a commit that referenced this pull request Nov 4, 2020
…rateMinorPatch is set to true (#7628)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants