Skip to content

Automerge pre-commit.ci autoupdate PRs #95

Description

@kluge7

Context

We’re currently using pre-commit for local and CI linting/formatting hooks.
Updates to these hooks are handled automatically through pre-commit.ci, configured with:

ci:
  autoupdate_schedule: quarterly

This means that every few months, pre-commit.ci will open an automated pull request (e.g. “[pre-commit.ci] pre-commit autoupdate”) with updated hook versions.

Motivation

These auto-update PRs require a manual approval and merge each time — even though:

  • They are generated by a trusted bot (pre-commit-ci[bot])
  • All CI and formatting checks must already pass before merge
    This adds unnecessary overhead for a purely maintenance task.

Proposed Solution

Enable automatic merging of pre-commit.ci’s autoupdate PRs once all required checks have passed.

We’ve investigated this and found that:

Tasks

  • Research whether auto-merging pre-commit.ci autoupdate PRs is possible using Mergify.
  • Set up a test repository to experiment with a .mergify.yml configuration (this should be done a personal repo and you must install Mergify as a GitHub App)
  • Verify that auto-merge triggers only for PRs created by pre-commit-ci[bot].
  • Ensure all required CI checks pass before any auto-merge is performed (add an example GitHub actions workflow to test on)
  • Document the setup steps and results (e.g., limitations, required permissions, etc.).
  • If successful, propose integrating the solution into the vortex-ci repository and other repositories that use pre-commit autoupdate

References:

Contacts

@kluge7
@Andeshog

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions