Skip to content

Fix renovate auto merge config - #4662

Open
svartkanin wants to merge 1 commit into
archlinux:masterfrom
svartkanin:renovate-fix-config
Open

Fix renovate auto merge config#4662
svartkanin wants to merge 1 commit into
archlinux:masterfrom
svartkanin:renovate-fix-config

Conversation

@svartkanin

Copy link
Copy Markdown
Collaborator

Auto merge was not working ever as the wrong type was supplied

@svartkanin
svartkanin requested a review from Torxed as a code owner July 24, 2026 01:47

@codefiles codefiles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:

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.

2 participants