Skip to content

When running pre-commit autoupdate choose which type of update you want #3052

@paddyroddy

Description

@paddyroddy

search you tried in the issue tracker

autoupdate major

describe your actual problem

I have a package that is a GitHub Action as well as a pre-commit hook. So it updates in minor version v0.1.0 and has a major version tracking it v0 which will update automatically on tag. For the purpose of GitHub actions this is what I want as I can do paddyroddy/my-action@v0. But for the pre-commit hook I want to point to v0.1.0 and when I run pre-commit autoupdate it should go to v0.2.0, not v0 (as mutable reference error will happen). But this is what occurs when I run pre-commit autoupdate.

I tried the minor versions to be without v, i.e. 0.1.0 & v0. As well as v0.1.0 & 0 and that approach worked the same as if both had the v in front.

pre-commit --version

3.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions