Skip to content

Integrate gitStream with Mend Renovate

Auto-Merge Renovate Dependency Updates

Auto-merge Renovate PRs

Required gitStream Plugins

This example requires you to install the extractRenovateVersionBump, compareMultiSemver and compareSemver plugins.

Learn more about gitStream plugins.

Configuration Description

Conditions (all must be true):

  • The PR author is Renovate.
  • The branch name includes 'renovate'
  • The dependency change is a patch or minor update.

Automation Actions:

  • Approve the PR
  • Apply an approved-renovate label to the PR
  • Merge the PR if all status checks pass.

Configuration Example

manifest:
  version: 1.0

automations:
  merge_renovate_minor:
    if:
      - {{ bump == 'minor' }}
      - {{ branch.name | includes(term="renovate") }}
      - {{ branch.author | includes(term="renovate") }}
    run:
      - action: approve@v1
      - action: add-comment@v1
        args:
          comment: |
            Renovate `minor` version bumps are approved automatically.

  merge_renovate_minor_patch:
    if:
      - {{ bump == 'patch' }}
      - {{ branch.name | includes(term="renovate") }}
      - {{ branch.author | includes(term="renovate") }}
    run:
      - action: approve@v1
      - action: merge@v1
      - action: add-comment@v1
        args:
          comment: |
            Renovate `patch` version bumps are approved and merged automatically.

bump: {{ pr.description | extractRenovateVersionBump | compareMultiSemver }}

Configuration Description

Conditions (all must be true):

  • The PR author is Renovate.
  • The branch name includes 'renovate'

Automation Actions:

  • Approve the PR
  • Apply an approved-renovate label to the PR
  • Merge the PR if all status checks pass.

Configuration Example

# -*- mode: yaml -*-

manifest:
  version: 1.0

automations:
  approve_renovate:
    if:
      - {{ branch.author | includes(term="renovate") }}
    run:
      - action: approve@v1
      - action: add-label@v1
        args:
          label: "approved-renovate"
      - action: merge@v1
        args:
          wait_for_all_checks: true
          squash_on_merge: true