Fix renovate auto merge config - #4662
Open
svartkanin wants to merge 1 commit into
Open
Conversation
codefiles
approved these changes
Aug 5, 2026
codefiles
left a comment
Contributor
There was a problem hiding this comment.
LGTM
This comment is mostly to document how I reviewed this.
To check locally using a Renovate container:
$ podman pull docker.io/renovate/renovate
$ podman run \
> --tty \
> --rm \
> --volume ./:/usr/src/app \
> --env LOG_LEVEL=debug \
> renovate --platform=local
Below is an excerpt of the mypy section from DEBUG: packageFiles with updates (repository=local)
"poetry": [
{
"deps": [
...
{
"packageName": "mypy",
"depName": "mypy",
"datasource": "pypi",
"depType": "project.optional-dependencies",
"currentValue": "==2.3.0",
"currentVersion": "2.3.0",
"managerData": {"depGroup": "dev"},
"updates": [],
"versioning": "pep440",
"warnings": [],
"sourceUrl": "https://github.com/python/mypy",
"registryUrl": "https://pypi.org/pypi",
"changelogUrl": "https://mypy.readthedocs.io/en/latest/changelog.html",
"mostRecentTimestamp": "2026-07-13T11:28:38.000Z",
"currentVersionTimestamp": "2026-07-13T11:28:38.000Z",
"currentVersionAgeInDays": 22,
"fixedVersion": "2.3.0"
},
...
"packageFile": "pyproject.toml"
}
],
This shows that for example, mypy will have the depType of project.optional-dependencies. This comes from the pyproject.toml file.
devDependencies is an npm dependency type, the wrong type for mypy. The matchDepTypes fails in this case and the automerge is not applied.
References:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Auto merge was not working ever as the wrong type was supplied