Skip to content

[Bug] Remote branch not deleted by usethis::pr_finish() #1150

@fh-kpikhart

Description

@fh-kpikhart

When using usethis::pr_finish(), my local branch is deleted, but not the remote branch.

I wonder if there is a bug where the == should be > here:
https://github.com/r-lib/usethis/blob/master/R/pr.R#L350

> usethis::pr_finish()
✔ Switching back to 'master' branch
✔ Pulling changes from GitHub source repo 'origin/master'
✔ Deleting local 'xxx' branch
> 

I don't get the expected output from ui_done(), and the branch is not deleted from GitHub

ui_done("Removing remote {ui_value(remote)}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitgit, GitHub, and CI in generalreprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions