Skip to content

Better default branch rules #209

@weierophinney

Description

@weierophinney

Feature Request

Q A
New Feature yes
RFC no
BC Break yes, but in a good way

Summary

When a branch targetting a new major exists, no releases have been made for that new major, and a release against current major is created, the action will set the default branch to the new major branch on completion.
This causes maintenance issues, as:

  • New bugfixes and features coming in are created against the new major branch.
  • Renovate creates patches against the new major branch.

As the new major is often a long-lived branch while longer refactoring is performed, these mean that the maintainer and/or contributor have to retarget pull requests, and, worse, a new minor branch for the existing major needs to be manually created and pushed before doing so.

The expected behavior:

  • When a release is created,
    • The next release branch should always be calculated as a new minor.
  • If the calculated new branch version is higher than the default branch version
    • Then set the new branch version as the default branch.
    • Else, do not reset the default branch.

(Discussed during the September 2022 TSC meeting.)

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