Skip to content

fix: packageRules[0].minimumReleaseAge should be a string#910

Closed
reubenjds wants to merge 1 commit intorenovatebot:mainfrom
reubenjds:main
Closed

fix: packageRules[0].minimumReleaseAge should be a string#910
reubenjds wants to merge 1 commit intorenovatebot:mainfrom
reubenjds:main

Conversation

@reubenjds
Copy link
Copy Markdown
Contributor

Fix to the error I got when using the example renovate-config.json

"errors": [
         {
           "topic": "Configuration Error",
           "message": "Configuration option `packageRules[0].minimumReleaseAge` should be a string"
         }
       ]

@rarkins
Copy link
Copy Markdown
Contributor

rarkins commented Feb 20, 2025

This looks to be a very poor choice of example altogether! This is not the only fix required

@jamietanna jamietanna self-assigned this Nov 7, 2025
jamietanna added a commit that referenced this pull request Nov 7, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

This is a separate check to allow us to run it only for changes to the
examples, or the Workflow definition.
@jamietanna
Copy link
Copy Markdown
Contributor

I've re-raised this in #963, as I can't push back to your repo to amend a change (as you're pushing from main, which is protected) - thanks again for the report!

jamietanna added a commit that referenced this pull request Nov 7, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

This is a separate check to allow us to run it only for changes to the
examples, or the Workflow definition.
@jamietanna
Copy link
Copy Markdown
Contributor

Replaced by #963 - thanks again for the fix!

@jamietanna jamietanna closed this Nov 10, 2025
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
jamietanna added a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

When trying to validate the `renovate-config.js`.

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
viceice pushed a commit that referenced this pull request Dec 15, 2025
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

When trying to validate the `renovate-config.js`.

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants