llms.txt: machine-readable documentation index. Markdown version of this page is also available.

JetBrains Air Help

Automate dependency upgrades

A dependency upgrade automation surveys the project's outdated and vulnerable dependencies once a week, upgrades the ones that are safe to upgrade, runs the build and the tests, and opens one pull request. Patch and minor versions go into one batch. Major versions and known breaking changes are handled separately, after the agent reads their release notes, and anything it can't verify is left out and listed in the pull request.

You build it from the Dependency Upgrade template. If you turned on Dependency maintenance during the onboarding, you already have this automation, scheduled for Mondays at 07:00 – see 1. Check the automations you already have.

How this differs from Dependabot and Renovate

Dependency bots open a pull request per version bump and leave it to your CI to tell whether it works. The automation does the work a person does after that: it reads the changelog, fixes the code a breaking change affects, runs the tests, and leaves out what it can't prove.

If a bot already handles routine bumps in the repository, don't run both on the same dependencies. Use the bot for patch versions and the automation for the upgrades that need code changes – see Decide what it upgrades.

Set up the automation

Create a weekly dependency upgrade

  1. On the Automations page, click New Automation. In Instructions, click Use Template and select Dependency Upgrade under By Air.

  2. Select the repository. If the build or the tests need specific tools, services, or private package registries, select an environment configuration with those instead. An upgrade the agent can't build is an upgrade it leaves out.

  3. In Triggers, add an At time trigger for one day a week, set checkout to the default branch, and set the change handling to Create a PR. One run a week keeps it to at most one pull request a week.

    A schedule trigger at 7:00 on Mondays that checks out main and creates a PR
  4. Click Create.

Decide what it upgrades

Add your policy to the end of the instructions. For example:

Skip patch versions; Dependabot handles them. Never upgrade the Kotlin compiler or the Spring Boot version; they move with the platform team's schedule. Treat dependencies under tools/ as dev-only: upgrade them even across major versions if the build passes. Leave major versions of runtime dependencies out, and list them with a link to their release notes.

If the repository is a monorepo, name the modules the automation owns, so two automations on the same repository don't upgrade the same dependency.

Go further

  • Several repositories in one run – when a library and the services that use it live apart, select all of them, so the upgrade and the code it breaks are fixed together – see Work on several repositories.

  • Review the upgrade – a code review automation with the PR author filter set to the account the upgrade pull requests come from reviews each one before a person does.

  • React to a security advisory – to upgrade one vulnerable package as soon as an advisory arrives, start the automation from an incoming webhook and pass the advisory in the payload – see Incoming webhooks.

27 November 2026