From 7bf64a4f62b324d06528ac722c2f1b7cc1905d1f Mon Sep 17 00:00:00 2001 From: Olivier Roy Date: Fri, 12 Apr 2024 19:44:01 -0400 Subject: [PATCH] Other PR links --- R/pr.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/pr.R b/R/pr.R index 69947567b..6955ae7af 100644 --- a/R/pr.R +++ b/R/pr.R @@ -969,7 +969,7 @@ pr_branch_delete <- function(pr) { if (is.null(pr_ref)) { ui_bullets(c( - "i" = "PR {.val {pr$pr_string}} originated from branch {.val {pr_remref}}, + "i" = "{.href [PR {pr$pr_string}]({pr$pr_html_url})} originated from branch {.val {pr_remref}}, which no longer exists." )) return(invisible(FALSE)) @@ -977,14 +977,14 @@ pr_branch_delete <- function(pr) { if (is.na(pr$pr_merged_at)) { ui_bullets(c( - "i" = "PR {.val {pr$pr_string}} is unmerged, we will not delete the + "i" = "{.href [PR {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" = "PR {.val {pr$pr_string}} has been merged, deleting remote branch + "v" = "{.href [PR {pr$pr_string}]({pr$pr_html_url})} has been merged, deleting remote branch {.val {pr_remref}}." )) # TODO: tryCatch here?