diff --git a/R/pr.R b/R/pr.R index 565f6603f..9a202232b 100644 --- a/R/pr.R +++ b/R/pr.R @@ -967,7 +967,7 @@ pr_branch_delete <- function(pr) { if (is.null(pr_ref)) { ui_bullets(c( - "i" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} originated from branch {.val {pr_remref}}, + "i" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} originated from branch {.val {pr_remref}}, which no longer exists." )) return(invisible(FALSE)) @@ -975,14 +975,14 @@ pr_branch_delete <- function(pr) { if (is.na(pr$pr_merged_at)) { ui_bullets(c( - "i" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} is unmerged, we will not delete the + "i" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} is unmerged, we will not delete the remote branch {.val {pr_remref}}." )) return(invisible(FALSE)) } ui_bullets(c( - "v" = "{.href [PR #{pr$pr_number}]({pr$pr_html_url})} has been merged, deleting remote branch + "v" = "PR {.href [{pr$pr_string}]({pr$pr_html_url})} has been merged, deleting remote branch {.val {pr_remref}}." )) # TODO: tryCatch here?