Skip to content

Updatecli left over working branches without changes toward the head branch #6199

@olblak

Description

@olblak

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Over time, Updatecli creates working branch which turn out having no changes.

Updatecli push a branch to remote only if it contains changes.
Updatecli git reset a branch if it diverged from the base branch
But Updatecli never deletes a branch

This can result in a lot of Git branches.

Here is an example of GitHub action that shouldn't be needed
https://github.com/macedogm/fork-rancher/blob/da35bb97ae8cc9ce362cd4cae99b88ef3c6b4706/.github/workflows/updatecli.yml#L31

Expected Behavior

We should only have working branches that diverged from the source branch.

Steps To Reproduce

No response

Environment

- OS:
- updatecli: 0.108.0

Pipeline Graph

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions