Skip to content

Delete merged branches in nixpkgs automatically #116

@wolfgangwalther

Description

@wolfgangwalther

A lot of times, when merging backport PRs, the branches are not deleted. I and some others keep cleaning them up regularly, but it's manual work that can be avoided.

Please consider setting this in nixpkgs -> Settings -> General:

Image

There is also a related nixpkgs issue: NixOS/nixpkgs#128105, in which a concern was raised, that this could be problematic for PRs from branches like staging-next or haskell-updates - we surely don't want to delete those branches.

However, this is not a concern - with the right branch protection rules, those branches will not be deleted with this setting turned on. I confirmed that in my own fork. I'm pretty sure that the relevant branch protection is already set up, but you probably want to double check:

Image

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