Skip to content

Let user define branch to update from #2512

@finswimmer

Description

@finswimmer

This is a follow up of #2508, whose conversation was locked before any discussion could start.

Whenever there is a need for a project to support multiple versions, it is necessary to provide multiple branches e.g. 1.1, 1.2 which receives backports of fixes from the main development branch and also receive there own tags with each release. (Other examples beside Poetry, which uses this branching strategy: pandas, sqlalchemy, jupyter-notebook)

At the moment pre-commit autoupdate can only fetch the latest tag from the default branch. This is all good for the simple case, where the user always want to really get the latest version and the default branch always is the stable branch and not the main development branch. If users want to stay at a specific e.g minor version, there's currently no way to update to new tags in those branches.

This is why I suggest a new option for the .pre-commit-config.yaml, where users can define a branch they want to receive new tags from, for each repo.

Disclaimer: Every feature request is created due to a need for it by its author. In this case Poetry likes to see such an option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions