Add open-pull-requests-limit to Dependabot configuration

MSAL

Adds an open-pull-requests-limit to each update configuration in Dependabot files, and replaces an existing value when it differs. The option caps the number of version update pull requests Dependabot keeps open; setting it to 0 temporarily disables version updates for that package-ecosystem. Security update pull requests are not subject to this limit and do not count towards it. The available configuration options for dependabot are listed on GitHub.

org.openrewrite.github.AddDependabotOpenPullRequestsLimit

Required

The maximum number of version update pull requests Dependabot keeps open for an update configuration. Set to 0 to temporarily disable version updates for the matched entries. Security update pull requests are not subject to this limit.

Optional

Restrict the change to a single package-ecosystem, for example gradle. When omitted, every update configuration is changed.

mod run . --recipe=org.openrewrite.github.AddDependabotOpenPullRequestsLimit \ -P openPullRequestsLimit=5

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.