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

Allow automerge for config migration #23317

Open
rarkins opened this issue Jul 12, 2023 · 2 comments
Open

Allow automerge for config migration #23317

rarkins opened this issue Jul 12, 2023 · 2 comments
Labels
core:automerge Relating to Renovate's automerge capabilities core:config Related to config capabilities and presets priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented Jul 12, 2023

Describe the proposed change(s).

Allow users to opt in to automerge of config migration PRs.

Describe why we need/want these change(s).

As requested by @hoepfnerj in #23302, they have a lot of repositories and would prefer to have Renovate automatically migrate itself.

@rarkins rarkins added type:feature Feature (new functionality) priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:ready core:automerge Relating to Renovate's automerge capabilities core:config Related to config capabilities and presets labels Jul 12, 2023
@HonkingGoose
Copy link
Collaborator

I'm curious what direction you want to go with this feature. So here are some questions. 😄

New config option and environment variable?

Do you want a new config option like configMigrationAutomerge=true and matching variable --automergeConfigMigrationPRs?

New preset?

Or do you want a preset automergeConfigMigrationPRs, with a suitable prefix like helper or default or whatever.

The preset would do something like this:

{
  "packageRules": [
    {
      "matchUpdateTypes": ["configMigration"],
      "automerge": true
    }
  ]
}

No configMigration update type (yet)

I checked the matchUpdateTypes table: 1

Name Value
allowedValues  major, minor, patch, pin, pinDigest, digest, lockFileMaintenance, rollback, bump, replacement

And there's no configMigration update type yet.

Footnotes

  1. Renovate Docs, matchUpdateTypes.

@rarkins
Copy link
Collaborator Author

rarkins commented Jul 12, 2023

I think it would need to be a new option, or a change to an existing option. Maybe for example for config migration there's these options:

  • none
  • dashboard
  • pr
  • pr-automerge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core:automerge Relating to Renovate's automerge capabilities core:config Related to config capabilities and presets priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)
Projects
None yet
Development

No branches or pull requests

2 participants